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

EnvInject undefines NODE_NAME environment variable on master

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • envinject-plugin
    • None
    • Windows 7, 64 bit

      I have quite a lot of jobs which can roam around between master and about 20 Slaves. The initial job updates an SCM view and compiles the software and starts depending jobs like building an installer. The installer job needs to know on which node to run which it is told by using the parameterized trigger plugin and the node label parameter plugin. After upgrading to latest Jenkins 1.527 this mechanism is broken at least for a Windows 7/64 bit master.

      I had similar problems about a year ago, see JENKINS-14109. Maybe this is helpful.

      Downgrading to 1.526 fixes the issue, so there must be a change in core which caused this. The only suspect from the changes I can see is JENKINS-19042

          [JENKINS-19222] EnvInject undefines NODE_NAME environment variable on master

          Dirk Kuypers created issue -
          Dirk Kuypers made changes -
          Attachment New: config.xml [ 24248 ]
          Dirk Kuypers made changes -
          Attachment New: config.xml [ 24249 ]
          Dirk Kuypers made changes -
          Link New: This issue is related to JENKINS-9671 [ JENKINS-9671 ]
          Dominik Bartholdi made changes -
          Link New: This issue is related to JENKINS-19307 [ JENKINS-19307 ]
          Sven Appenrodt made changes -
          Link New: This issue is related to JENKINS-23718 [ JENKINS-23718 ]
          Dominik Bartholdi made changes -
          Component/s New: envinject [ 15893 ]
          Component/s Original: parameterized-trigger [ 15592 ]
          Component/s Original: core [ 15593 ]
          Component/s Original: nodelabelparameter [ 15873 ]
          Assignee Original: Dominik Bartholdi [ domi ] New: Gregory Boissinot [ gbois ]
          Daniel Beck made changes -
          Summary Original: Update to 1.527 breaks ${NODE_NAME} as node parameter on master New: EnvInject undefines NODE_NAME environment variable on master
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 150670 ] New: JNJira + In-Review [ 177729 ]
          pjdarton made changes -
          Link New: This issue depends on JENKINS-24283 [ JENKINS-24283 ]

            gbois Gregory Boissinot
            bruce Dirk Kuypers
            Votes:
            6 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated: