We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31b9da4 + 8279180 commit 89150cdCopy full SHA for 89150cd
src/main/java/org/jenkinsci/plugins/workflow/vSphereStep.java
@@ -122,7 +122,9 @@ protected String run() throws Exception {
122
step.getBuildStep().getClass().toString().contains("Clone") ||
123
step.getBuildStep().getClass().toString().contains("ExposeGuestInfo")) {
124
IP = step.getBuildStep().getIP();
125
- envVars.put("VSPHERE_IP", IP);
+ if (IP != null) {
126
+ envVars.put("VSPHERE_IP", IP);
127
+ }
128
129
if (step.getBuildStep().getClass().toString().contains("ExposeGuestInfo")) {
130
Map<String, String> envVars = ((ExposeGuestInfo)step.getBuildStep()).getVars();
@@ -136,4 +138,4 @@ protected String run() throws Exception {
136
138
return IP;
137
139
}
140
-}
141
+}
0 commit comments