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

Jenkins JIRA | Carsten Seeger | 4 months ago
  1. 0

    the following code is used to trigger vSphere plugin to create a vm from template using pipline {code:java} vSphere buildStep: [$class: 'Clone', clone: "${vm_name}", cluster: "${cluster}", datastore: "${datastore}", linkedClone: false, powerOn: false, resourcePool: '<ressources>', sourceName: "${templatename}"], serverName: '<servername>' {code} after vm will be successfully cloned the following error is triggert and fails the jenkins job {code:java} java.lang.IllegalArgumentException: Null value not allowed as an environment variable: VSPHERE_IP at hudson.EnvVars.put(EnvVars.java:356) at org.jenkinsci.plugins.workflow.vSphereStep$vSphereExecution.run(vSphereStep.java:129) at org.jenkinsci.plugins.workflow.vSphereStep$vSphereExecution.run(vSphereStep.java:94) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49) at hudson.security.ACL.impersonate(ACL.java:213) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code} a manual overwrite with {code}env.VSPHERE_IP = "${ip}"{code} before triggering the job does not help, the plugin seems to overwrite it with a NULL and cause the exception above

    Jenkins JIRA | 4 months ago | Carsten Seeger
    java.lang.IllegalArgumentException: Null value not allowed as an environment variable: VSPHERE_IP
  2. 0

    [JIRA] (JENKINS-36952) Vsphere cloud plugin VSPHERE_IP NULL on clone from template via pipeline plugin

    Google Groups | 4 months ago | cse...@epages.com (JIRA)
    java.lang.IllegalArgumentException: Null value not allowed as an environment variable: VSPHERE_IP
  3. 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
  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 | 3 weeks ago
    java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING
  6. 0

    Null value not allowed as an environment variable: ALLURE_HOME

    GitHub | 12 months ago | SubhashNikam
    java.lang.IllegalArgumentException: Null value not allowed as an environment variable: ALLURE_HOME

    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: VSPHERE_IP

      at hudson.EnvVars.put()
    2. Hudson
      EnvVars.put
      1. hudson.EnvVars.put(EnvVars.java:356)
      1 frame
    3. org.jenkinsci.plugins
      AbstractSynchronousNonBlockingStepExecution$1$1.call
      1. org.jenkinsci.plugins.workflow.vSphereStep$vSphereExecution.run(vSphereStep.java:129)
      2. org.jenkinsci.plugins.workflow.vSphereStep$vSphereExecution.run(vSphereStep.java:94)
      3. org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49)
      3 frames
    4. Hudson
      ACL.impersonate
      1. hudson.security.ACL.impersonate(ACL.java:213)
      1 frame
    5. org.jenkinsci.plugins
      AbstractSynchronousNonBlockingStepExecution$1.run
      1. org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames