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

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            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-28131 Improving the test and adding some inline comments

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - 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-28131 Improving the test and adding some inline comments
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            CHANGES.md
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/EnvWorkflowTest.java
            cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/EnvActionImpl/Binder/help.jelly
            support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java
            http://jenkins-ci.org/commit/workflow-plugin/06cb328979c8772da21a12b265a69dde68024e0c
            Log:
            Merge pull request #145 from recena/master

            JENKINS-28131 - Pass NODE_NAME into node{}

            Compare: https://github.com/jenkinsci/workflow-plugin/compare/b127fd48c37e...06cb328979c8

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: CHANGES.md aggregator/src/test/java/org/jenkinsci/plugins/workflow/EnvWorkflowTest.java cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/EnvActionImpl/Binder/help.jelly support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java http://jenkins-ci.org/commit/workflow-plugin/06cb328979c8772da21a12b265a69dde68024e0c Log: Merge pull request #145 from recena/master JENKINS-28131 - Pass NODE_NAME into node{} Compare: https://github.com/jenkinsci/workflow-plugin/compare/b127fd48c37e...06cb328979c8
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            CHANGES.md
            http://jenkins-ci.org/commit/workflow-plugin/224578701c9e2d100267aa94fc091cebe2771b2d
            Log:
            JENKINS-28131 Noting.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: CHANGES.md http://jenkins-ci.org/commit/workflow-plugin/224578701c9e2d100267aa94fc091cebe2771b2d Log: JENKINS-28131 Noting.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: recena
            Path:
            cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/EnvActionImpl/Binder/help.jelly
            http://jenkins-ci.org/commit/workflow-cps-plugin/90be82d7d689e8b48ab55b34e0d05c85af2403bf
            Log:
            JENKINS-28131 - Pass NODE_NAME into node{}

            Originally-Committed-As: ae1b4c965a649bdc9743e65074e3770ec8fe25cd

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: recena Path: cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/EnvActionImpl/Binder/help.jelly http://jenkins-ci.org/commit/workflow-cps-plugin/90be82d7d689e8b48ab55b34e0d05c85af2403bf Log: JENKINS-28131 - Pass NODE_NAME into node{} Originally-Committed-As: ae1b4c965a649bdc9743e65074e3770ec8fe25cd
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: recena
            Path:
            cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/EnvActionImpl/Binder/help.jelly
            http://jenkins-ci.org/commit/workflow-cps-plugin/1b1eae0444f146e11985de7ce8dab4b353fbe5a1
            Log:
            JENKINS-28131 - Pass NODE_NAME into node{}

            Originally-Committed-As: 535400df863aa3e297bee6d7a2c51c62b5d32ccc

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: recena Path: cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/EnvActionImpl/Binder/help.jelly http://jenkins-ci.org/commit/workflow-cps-plugin/1b1eae0444f146e11985de7ce8dab4b353fbe5a1 Log: JENKINS-28131 - Pass NODE_NAME into node{} Originally-Committed-As: 535400df863aa3e297bee6d7a2c51c62b5d32ccc

              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: