Skip to content

Commit a6ecf27

Browse files
committed
Do not substitute EXECUTOR_NUMBER variables.
It is a follow-up to the discussion of f62db63 Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
1 parent f62db63 commit a6ecf27

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/main/java/hudson/plugins/perforce/utils/NodeSubstitutionHelper.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,6 @@ public class NodeSubstitutionHelper {
8585
// Push modern variables
8686
target.put("NODE_NAME", nodeName.isEmpty() ? "master" : nodeName);
8787
target.put("NODE_LABELS", Util.join(node.getAssignedLabels(), " "));
88-
Thread t = Thread.currentThread();
89-
if (t instanceof Executor) {
90-
Executor e = (Executor) t;
91-
target.put("EXECUTOR_NUMBER", String.valueOf(e.getNumber()));
92-
} else {
93-
target.put("EXECUTOR_NUMBER", "UNKNOWNEXECUTOR");
94-
}
9588

9689
// Get environment
9790
Computer c = node.toComputer();

0 commit comments

Comments
 (0)