mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 22:12:25 +00:00
Expose the NODE_NAME environment variables
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18623 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
e83995055e
commit
df26ff63a7
1 file changed
+1
@@ -1305,6 +1305,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
|
||||
if (t instanceof Executor) {
|
||||
Executor e = (Executor) t;
|
||||
env.put("EXECUTOR_NUMBER",String.valueOf(e.getNumber()));
|
||||
env.put("NODE_NAME",e.getOwner().getName());
|
||||
}
|
||||
|
||||
return env;
|
||||
|
||||
Reference in new issue
Block a user