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{}

          Code changed in jenkins
          User: recena
          Path:
          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/535400df863aa3e297bee6d7a2c51c62b5d32ccc
          Log:
          JENKINS-28131 - Pass NODE_NAME into node{}

          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 support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java http://jenkins-ci.org/commit/workflow-plugin/535400df863aa3e297bee6d7a2c51c62b5d32ccc Log: JENKINS-28131 - Pass NODE_NAME into node{}

          Code changed in jenkins
          User: recena
          Path:
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/AvailableEnvVarTest.java
          http://jenkins-ci.org/commit/workflow-plugin/a62d31f25434ac965d93e6dbb7ffd7aad7b2fdd8
          Log:
          JENKINS-28131 Added a new test to verify that specefic environment variables are available

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: recena Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/AvailableEnvVarTest.java http://jenkins-ci.org/commit/workflow-plugin/a62d31f25434ac965d93e6dbb7ffd7aad7b2fdd8 Log: JENKINS-28131 Added a new test to verify that specefic environment variables are available

          Code changed in jenkins
          User: recena
          Path:
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/AvailableEnvVarTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/EnvWorkflowTest.java
          http://jenkins-ci.org/commit/workflow-plugin/b5c7f4f5b5c362ec0a9447fd668f022d398d4628
          Log:
          JENKINS-28131 Filename has been renamed to be more clear

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: recena Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/AvailableEnvVarTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/EnvWorkflowTest.java http://jenkins-ci.org/commit/workflow-plugin/b5c7f4f5b5c362ec0a9447fd668f022d398d4628 Log: JENKINS-28131 Filename has been renamed to be more clear

          Code changed in jenkins
          User: recena
          Path:
          support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java
          http://jenkins-ci.org/commit/workflow-plugin/f9e64a4fd9aff2b9d3f0f78280fc0dd1697cb081
          Log:
          JENKINS-28131 Checks if the executor is a Master

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: recena Path: support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java http://jenkins-ci.org/commit/workflow-plugin/f9e64a4fd9aff2b9d3f0f78280fc0dd1697cb081 Log: JENKINS-28131 Checks if the executor is a Master

          Code changed in jenkins
          User: recena
          Path:
          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/6a64190bfc67fbef4f91d18ff88670235ce910f4
          Log:
          JENKINS-28131 Solved a findbug issue

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: recena Path: 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/6a64190bfc67fbef4f91d18ff88670235ce910f4 Log: JENKINS-28131 Solved a findbug issue

          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

          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

          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

          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

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

          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.

          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

          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

          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

          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

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

              Created:
              Updated:
              Resolved: