jenkins-gitlab-merge-request-builder-plugin icon indicating copy to clipboard operation
jenkins-gitlab-merge-request-builder-plugin copied to clipboard

Jenkins bails when gitlabDescription is null

Open mattiasb opened this issue 8 years ago • 5 comments

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)

mattiasb avatar Oct 16 '15 14:10 mattiasb

Hi, can you submit a PR? :)

AndreaGiardini avatar Oct 18 '15 23:10 AndreaGiardini

I could. But I don't know that that is the issue.

mattiasb avatar Oct 18 '15 23:10 mattiasb

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.

mig5 avatar Oct 27 '15 09:10 mig5

You can manualy install 1.2.3 version without any problem.

mahmutbayri avatar Oct 28 '15 14:10 mahmutbayri

Hi! What is current status of this issue? This happened with our Jenkins too :(

Gladkov-Art avatar Nov 20 '15 08:11 Gladkov-Art