From 5fae909937c3325677744ec88ade613b5bb7630a Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Sat, 11 Sep 2021 15:38:41 -0700 Subject: [PATCH] Stop using deprecated Util#join --- .../java/org/jenkinsci/plugins/vSphereCloudSlaveTemplate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/plugins/vSphereCloudSlaveTemplate.java b/src/main/java/org/jenkinsci/plugins/vSphereCloudSlaveTemplate.java index 781987fc..1d2bc65e 100644 --- a/src/main/java/org/jenkinsci/plugins/vSphereCloudSlaveTemplate.java +++ b/src/main/java/org/jenkinsci/plugins/vSphereCloudSlaveTemplate.java @@ -727,7 +727,7 @@ private EnvVars calculateVariablesForGuestInfo(final String cloneName, final Tas addEnvVars(knownVariables, listener, Jenkins.getInstance().getGlobalNodeProperties()); addEnvVars(knownVariables, listener, this.nodeProperties); addEnvVar(knownVariables, "NODE_NAME", cloneName); - addEnvVar(knownVariables, "NODE_LABELS", getLabelSet() == null ? null : Util.join(getLabelSet(), " ")); + addEnvVar(knownVariables, "NODE_LABELS", getLabelSet() == null ? null : getLabelSet().stream().map(Object::toString).collect(Collectors.joining(" "))); addEnvVar(knownVariables, "cluster", this.cluster); addEnvVar(knownVariables, "datastore", this.datastore); addEnvVar(knownVariables, "folder", this.folder);