Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28131

Pass NODE_NAME into node{}

    XMLWordPrintable

    Details

    • Similar Issues:

      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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: