[
https://issues.jenkins-ci.org/browse/JENKINS-13647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=162650#comment-162650
]
jcarsique commented on JENKINS-13647:
-------------------------------------
The use of EnvVarsResolver in that commit seems to cause a blocker issue when
running a batch task. Nothing happens on the GUI, the console is empty, here's
the server log stacktrace:
{code}hudson.model.Executor run
SEVERE: Executor threw an exception
java.lang.NullPointerException: Current Project is null
at
com.sonyericsson.rebuild.RebuildAction.getProject(RebuildAction.java:117)
at
com.sonyericsson.rebuild.RebuildAction.getUrlName(RebuildAction.java:144)
at
org.jenkinsci.lib.envinject.service.EnvInjectActionRetriever.getEnvInjectAction(EnvInjectActionRetriever.java:32)
at
org.jenkinsci.lib.envinject.service.EnvVarsResolver.getEnVars(EnvVarsResolver.java:51)
at hudson.plugins.batch_task.BatchRun.run(BatchRun.java:224)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:239)
{code}
Tested with Jenkins 1.460 and 1.463
> Environment variables from EnvInject plugin are not inherited/parsed by batch
> tasks
> -----------------------------------------------------------------------------------
>
> Key: JENKINS-13647
> URL: https://issues.jenkins-ci.org/browse/JENKINS-13647
> Project: Jenkins
> Issue Type: Bug
> Components: batch-task
> Affects Versions: current
> Reporter: tsondergaard
> Assignee: Kohsuke Kawaguchi
> Attachments: config.xml
>
>
> Environment variables set for a job with the "Prepare an environment for the
> run" and not processed/used for batch tasks. This is very similar to bug
> JENKINS-5580 reported for batch tasks and the now deprecated setenv plugin
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira