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

22 views
Skip to first unread message

cseeger@epages.com (JIRA)

unread,
Jul 26, 2016, 8:39:02 AM7/26/16
to jenkinsc...@googlegroups.com
Carsten Seeger created an issue
 
Jenkins / Bug JENKINS-36952
Vsphere cloud plugin VSPHERE_IP NULL on clone from template via pipeline plugin
Issue Type: Bug Bug
Assignee: Unassigned
Components: vsphere-cloud-plugin
Created: 2016/Jul/26 12:38 PM
Environment: Jenkins 2.11
vSphere Plugin 2.13
Priority: Major Major
Reporter: Carsten Seeger

vSphere buildStep: [$class: 'Clone', clone: "$

{vm_name}

", cluster: "$

{cluster}

", datastore: "$

{datastore}

", linkedClone: false, powerOn: true, resourcePool: '<ressources>', sourceName: "$

{templatename}

"], serverName: '<servername>'

after vm will be successfully cloned the following error is triggert and fails the jenkins job
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)

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

cseeger@epages.com (JIRA)

unread,
Jul 26, 2016, 8:40:02 AM7/26/16
to jenkinsc...@googlegroups.com
Carsten Seeger updated an issue
Change By: Carsten Seeger
{{ vSphere buildStep: [$class: 'Clone', clone: "${vm_name}", cluster: "${cluster}", datastore: "${datastore}", linkedClone: false, powerOn: true, resourcePool: '<ressources>', sourceName: "${templatename}"], serverName: '<servername>' }}

after vm will be successfully cloned the following error is triggert and fails the jenkins job
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)
Add Comment Add Comment
 

cseeger@epages.com (JIRA)

unread,
Jul 26, 2016, 8:40:04 AM7/26/16
to jenkinsc...@googlegroups.com
Carsten Seeger updated an issue
{ { code:java}
vSphere buildStep: [$class: 'Clone', clone: "${vm_name}", cluster: "${cluster}", datastore: "${datastore}", linkedClone: false, powerOn: true, resourcePool: '<ressources>', sourceName: "${templatename}"], serverName: '<servername>'

{code
} }


after vm will be successfully cloned the following error is triggert and fails the jenkins job
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)

cseeger@epages.com (JIRA)

unread,
Jul 26, 2016, 8:41:01 AM7/26/16
to jenkinsc...@googlegroups.com
Carsten Seeger updated an issue
the following code is used to trigger vSphere plugin to create a vm from template

{code:java}

vSphere buildStep: [$class: 'Clone', clone: "${vm_name}", cluster: "${cluster}", datastore: "${datastore}", linkedClone: false, powerOn: true, resourcePool: '<ressources>', sourceName: "${templatename}"], serverName: '<servername>'
{code}


after vm will be successfully cloned the following error is triggert and fails the jenkins job

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)

cseeger@epages.com (JIRA)

unread,
Jul 26, 2016, 8:42:01 AM7/26/16
to jenkinsc...@googlegroups.com
Carsten Seeger updated an issue
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: true, resourcePool: '<ressources>', sourceName: "${templatename}"], serverName: '<servername>'
{code}

after vm will be successfully cloned the following error is triggert and fails the jenkins job

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)

cseeger@epages.com (JIRA)

unread,
Jul 26, 2016, 8:43:02 AM7/26/16
to jenkinsc...@googlegroups.com
Carsten Seeger updated an issue
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: true false , resourcePool: '<ressources>', sourceName: "${templatename}"], serverName: '<servername>'

{code}

after vm will be successfully cloned the following error is triggert and fails the jenkins job

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)

cseeger@epages.com (JIRA)

unread,
Jul 26, 2016, 8:45:02 AM7/26/16
to jenkinsc...@googlegroups.com
Carsten Seeger updated an issue
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
Reply all
Reply to author
Forward
0 new messages