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.

          [JENKINS-28131] Pass NODE_NAME into node{}

            recena Manuel Recena Soto
            anshuarya Anshu Arya
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: