jenkins-gitlab-merge-request-builder-plugin
jenkins-gitlab-merge-request-builder-plugin copied to clipboard
Jenkins bails when gitlabDescription is null
I got the following error when a gitlab merge request triggered a build just now.
My uneducated guess is that there needs to be an extra null check here that sets the parameter to "" or something when it is null.
FATAL: Null value not allowed as an environment variable: gitlabDescription
java.lang.IllegalArgumentException: Null value not allowed as an environment variable: gitlabDescription
at hudson.EnvVars.put(EnvVars.java:356)
at hudson.model.StringParameterValue.buildEnvironment(StringParameterValue.java:56)
at hudson.model.ParametersAction.buildEnvVars(ParametersAction.java:89)
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:947)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1036)
at hudson.scm.SCM.checkout(SCM.java:485)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1277)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
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)
Hi, can you submit a PR? :)
I could. But I don't know that that is the issue.
This occurs for me even when there is a description in the MR. In effect, the plugin simply is unusable for me - it triggers, but fails immediately with the above error.
You can manualy install 1.2.3 version without any problem.
Hi! What is current status of this issue? This happened with our Jenkins too :(