[JIRA] (JENKINS-61868) BuildMaster plugin - Cannot create first build of release for application

4 views
Skip to first unread message

jstarbird@scisolutions.com (JIRA)

unread,
Apr 10, 2020, 11:50:04 AM4/10/20
to jenkinsc...@googlegroups.com
Jon Starbird created an issue
 
Jenkins / Bug JENKINS-61868
BuildMaster plugin - Cannot create first build of release for application
Issue Type: Bug Bug
Assignee: Andrew Sumner
Components: inedo-buildmaster-plugin
Created: 2020-04-10 15:49
Environment: Jenkins 2.222.1
BuildMaster Plugin 3.1.0
BuildMaster 6.1.26
Priority: Minor Minor
Reporter: Jon Starbird

Started a new Release in BuildMaster for application.

Have the BuildMaster Release Parameter field setup for the app.

In job, have Create Build step.

When ran, select the app, release, then try to run. 

hit error - 

FATAL: Null value not allowed as an environment variable: BUILDMASTER_LATEST_BUILD_NUMBER
java.lang.IllegalArgumentException: Null value not allowed as an environment variable: BUILDMASTER_LATEST_BUILD_NUMBER
	at hudson.EnvVars.put(EnvVars.java:379)
	at com.inedo.buildmaster.jenkins.BuildMasterReleaseParameterValue.buildEnvironment(BuildMasterReleaseParameterValue.java:71)
	at org.jenkinsci.plugins.envinject.util.RunHelper.getBuildVariables(RunHelper.java:88)
	at org.jenkinsci.plugins.envinject.util.RunHelper.getBuildVariables(RunHelper.java:153)
	at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironmentWithoutJobPropertyObject(EnvInjectListener.java:233)
	at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:49)
	at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:542)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:462)
	at hudson.model.Run.execute(Run.java:1856)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:428)

Tried setting a env var with BUILDMASTER_LATEST_BUILD_NUMER set to 0 but still hit same error.

Tried setting a String param with the job run, still hit same error.

Once a Create Build is done on BuildMaster side this step works without issue so it's only on the First builds that this occurs.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

andrew.sumner@outlook.co.nz (JIRA)

unread,
Apr 14, 2020, 11:55:03 PM4/14/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages