Details
-
New Feature
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
Description
It would be useful and natural to be able to use env.NODE_NAME inside a node.
Currently. the following code results in null:
node('myNode') { echo "My name is ${env.NODE_NAME}" }
Perhaps ExecutorStepExecution should define NODE_NAME for use by steps inside node.
Attachments
Issue Links
- is blocking
-
JENKINS-27145 Advertise available environment variables
-
- Resolved
-
- is related to
-
JENKINS-28182 Revisit use of $JENKINS_SERVER_COOKIE and Launcher.kill
-
- Resolved
-
-
JENKINS-31391 Environment variable EXECUTOR_NUMBER should be usable inside node{} block
-
- Closed
-
Code changed in jenkins
User: recena
Path:
CHANGES.md
aggregator/src/test/java/org/jenkinsci/plugins/workflow/EnvWorkflowTest.java
support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java
http://jenkins-ci.org/commit/workflow-plugin/a7abe6c0efab953cb8782eaef72d0cc54ec712d1
Log:
JENKINS-28131Improving the test and adding some inline comments