• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Windows Server 2003 master and slaves

      I was trying to setup my Clearcase views for my nodes based on the ${NODE_NAME} variable, so that each slave would have a unique view name. ${NODE_NAME} is empty on the master, so I cannot use it to create view on the master and have to hard code the view path for each slave, making it so I can't move builds between nodes easily. I have specific requirements to set a custom workspace based on the NODE_NAME.

          [JENKINS-9671] NODE_NAME not defined for master node

          Alex Earl created issue -

          Alex Earl added a comment -

          Alex Earl added a comment - Initial implementation in https://github.com/jenkinsci/jenkins/pull/120

          dogfood added a comment -

          dogfood added a comment - Integrated in jenkins_main_trunk #803

          Alex Earl added a comment -

          Ran test with the following as a build step on master

          echo ${NODE_NAME} > node.txt

          The console log shows that NODE_NAME was expanded to "master" and the file node.txt contains "master" for content.

          Alex Earl added a comment - Ran test with the following as a build step on master echo ${NODE_NAME} > node.txt The console log shows that NODE_NAME was expanded to "master" and the file node.txt contains "master" for content.
          Alex Earl made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Alex Earl made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

          Code changed in jenkins
          User: Slide
          Path:
          core/src/main/java/hudson/model/Run.java
          http://jenkins-ci.org/commit/jenkins/9610fe55c17853ef2f7e0eb39ce1333c6346270c
          Log:
          [FIXED JENKINS-9671] Set NODE_NAME to master for "master" node

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Slide Path: core/src/main/java/hudson/model/Run.java http://jenkins-ci.org/commit/jenkins/9610fe55c17853ef2f7e0eb39ce1333c6346270c Log: [FIXED JENKINS-9671] Set NODE_NAME to master for "master" node
          Fred G made changes -
          Link New: This issue is related to JENKINS-11056 [ JENKINS-11056 ]

          Code changed in jenkins
          User: Slide
          Path:
          core/src/main/java/hudson/model/Run.java
          http://jenkins-ci.org/commit/jenkins/9610fe55c17853ef2f7e0eb39ce1333c6346270c
          Log:
          [FIXED JENKINS-9671] Set NODE_NAME to master for "master" node

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Slide Path: core/src/main/java/hudson/model/Run.java http://jenkins-ci.org/commit/jenkins/9610fe55c17853ef2f7e0eb39ce1333c6346270c Log: [FIXED JENKINS-9671] Set NODE_NAME to master for "master" node

          Owen Mehegan added a comment -

          This seems to be broken in 1.465. $NODE_NAME is unset, but $NODE_LABELS includes "master" on the master node.

          Owen Mehegan added a comment - This seems to be broken in 1.465. $NODE_NAME is unset, but $NODE_LABELS includes "master" on the master node.
          Owen Mehegan made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

            kohsuke Kohsuke Kawaguchi
            slide_o_mix Alex Earl
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: