Pass NODE_NAME into node{}

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

            Assignee:
            Manuel Recena Soto
            Reporter:
            Anshu Arya
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: