java.lang.IllegalArgumentException: Null value not allowed as an environment variable: NODE_LABEL

Jenkins JIRA | Ho-Fan Kang | 4 years ago
  1. 0

    UPDATE: I can circumvent this issue by using /job/JOBNAME/buildWithParameters instead. Deprioritized. When I try to specify the label parameter in launching my jenkins job like this: curl --silent --show-error --data 'json={"parameter":[{"name":"NODE_LABEL","value":"LABEL"}]&Submit=Build' http://jenkins:8888/job/JOBNAME/build It seems to ignore it and I end up with an error message like this: 00:00:00.018 FATAL: Null value not allowed as an environment variable: NODE_LABEL 00:00:00.018 java.lang.IllegalArgumentException: Null value not allowed as an environment variable: NODE_LABEL 00:00:00.019 at hudson.EnvVars.put(EnvVars.java:172) 00:00:00.019 at org.jvnet.jenkins.plugins.nodelabelparameter.LabelParameterValue.buildEnvVars(LabelParameterValue.java:71) 00:00:00.019 at hudson.model.ParametersAction.buildEnvVars(ParametersAction.java:82) 00:00:00.019 at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:961) 00:00:00.019 at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:776) 00:00:00.019 at hudson.model.AbstractProject.checkout(AbstractProject.java:1353) 00:00:00.019 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:689) 00:00:00.019 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 00:00:00.019 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:594) 00:00:00.019 at hudson.model.Run.execute(Run.java:1567) 00:00:00.019 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 00:00:00.019 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:00:00.019 at hudson.model.Executor.run(Executor.java:237)

    Jenkins JIRA | 4 years ago | Ho-Fan Kang
    java.lang.IllegalArgumentException: Null value not allowed as an environment variable: NODE_LABEL
  2. 0

    UPDATE: I can circumvent this issue by using /job/JOBNAME/buildWithParameters instead. Deprioritized. When I try to specify the label parameter in launching my jenkins job like this: curl --silent --show-error --data 'json={"parameter":[{"name":"NODE_LABEL","value":"LABEL"}]&Submit=Build' http://jenkins:8888/job/JOBNAME/build It seems to ignore it and I end up with an error message like this: 00:00:00.018 FATAL: Null value not allowed as an environment variable: NODE_LABEL 00:00:00.018 java.lang.IllegalArgumentException: Null value not allowed as an environment variable: NODE_LABEL 00:00:00.019 at hudson.EnvVars.put(EnvVars.java:172) 00:00:00.019 at org.jvnet.jenkins.plugins.nodelabelparameter.LabelParameterValue.buildEnvVars(LabelParameterValue.java:71) 00:00:00.019 at hudson.model.ParametersAction.buildEnvVars(ParametersAction.java:82) 00:00:00.019 at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:961) 00:00:00.019 at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:776) 00:00:00.019 at hudson.model.AbstractProject.checkout(AbstractProject.java:1353) 00:00:00.019 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:689) 00:00:00.019 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 00:00:00.019 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:594) 00:00:00.019 at hudson.model.Run.execute(Run.java:1567) 00:00:00.019 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 00:00:00.019 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:00:00.019 at hudson.model.Executor.run(Executor.java:237)

    Jenkins JIRA | 4 years ago | Ho-Fan Kang
    java.lang.IllegalArgumentException: Null value not allowed as an environment variable: NODE_LABEL
  3. 0

    Jenkins complains of null M2_HOME

    Stack Overflow | 5 years ago | bmargulies
    java.lang.IllegalArgumentException: Null value not allowed as an environment variable: M2_HOME
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-21279] java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING
  6. 0

    [JENKINS-21279] java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING - Jenkins JIRA

    jenkins-ci.org | 3 weeks ago
    java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Null value not allowed as an environment variable: NODE_LABEL

      at hudson.EnvVars.put()
    2. Hudson
      EnvVars.put
      1. hudson.EnvVars.put(EnvVars.java:172)
      1 frame
    3. org.jvnet.jenkins
      LabelParameterValue.buildEnvVars
      1. org.jvnet.jenkins.plugins.nodelabelparameter.LabelParameterValue.buildEnvVars(LabelParameterValue.java:71)
      1 frame
    4. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.ParametersAction.buildEnvVars(ParametersAction.java:82)
      2. hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:961)
      3. hudson.scm.SubversionSCM.checkout(SubversionSCM.java:776)
      4. hudson.model.AbstractProject.checkout(AbstractProject.java:1353)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:689)
      5 frames
    5. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      1 frame
    6. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:594)
      2. hudson.model.Run.execute(Run.java:1567)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:237)
      5 frames