JENKINS - EnvInject Plugin

612 views
Skip to first unread message

pschwe...@pillartechnology.com

unread,
Jan 27, 2016, 11:25:17 AM1/27/16
to Jenkins Developers
So we are trying to set up a Seedjob, we want the seed job to be set as the parent for the jobs it creates and the multijob plugin seemed to be the plugin to accomplish this task. However, in the process of setting this up we noticed that the EnvInject plugin (a dependency of multijob) crashes on the first seedjob run. I think this is because Jenkins doesn't set a build cause for that first run of the seedjob. After the first seed job fails we are able to manually trigger a job successfully because jenkins sets the build cause.

Thanks,
Paul

Our seed job set up was mirrored off of: https://github.com/thomasleveil/docker-jenkins-dsl-ready

JAVA_VERSION 8u66 
Jenkins ver. 1.625.3
envinject 1.92.1 


Stack trace:

Started
[EnvInject] - Loading node environment variables.
FATAL: null
java.lang.NullPointerException
	at org.jenkinsci.plugins.envinject.service.BuildCauseRetriever.getTriggeredCause(BuildCauseRetriever.java:36)
	at org.jenkinsci.plugins.envinject.service.EnvInjectVariableGetter.getBuildVariables(EnvInjectVariableGetter.java:111)
	at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironmentWithoutJobPropertyObject(EnvInjectListener.java:233)
	at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:46)
	at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:575)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:495)
	at hudson.model.Run.execute(Run.java:1741)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:408)
Finished: FAILURE

pschwe...@pillartechnology.com

unread,
Jan 27, 2016, 4:21:02 PM1/27/16
to Jenkins Developers, Dicko Sow
We have created a PR that seem to fix the issue: https://github.com/jenkinsci/envinject-plugin/pull/83
Reply all
Reply to author
Forward
0 new messages