-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.222.1
BuildMaster Plugin 3.1.0
BuildMaster 6.1.26
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.