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

Environment variables referencing other variables broken

    Details

    • Similar Issues:

      Description

      This seems to have broken fairly recently. I have a global PATH environment variable defined in Jenkins as follows:

      PATH: /path/to/toolchain/bin:$PATH

      Freestyle jobs work with this. An older version of the durable task plugin also worked. After updating to the latest, this pipeline job:

      node('master', {
          echo 'env.PATH=' + env.PATH
          sh('env')
         })
      

      results in this output:

      [Pipeline] node
      Running on master in /var/lib/jenkins/workspace/pipeline bug
      [Pipeline] {
      [Pipeline] echo
      env.PATH=/path/to/toolchain/bin:$PATH
      [Pipeline] sh
      [pipeline bug] Running shell script
      nohup: failed to run command ‘sh’: No such file or directory
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      ERROR: script returned exit code -2
      Finished: FAILURE
      

        Attachments

          Issue Links

            Activity

            jtatum James Tatum created issue -
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Assignee Jesse Glick [ jglick ]
            opi Alexander Opitz made changes -
            Component/s durable-task-plugin [ 18622 ]
            danielbeck Daniel Beck made changes -
            Link This issue is duplicated by JENKINS-41227 [ JENKINS-41227 ]
            jglick Jesse Glick made changes -
            Link This issue blocks JENKINS-40734 [ JENKINS-40734 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-28990 [ JENKINS-28990 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Labels regression
            jglick Jesse Glick made changes -
            Remote Link This issue links to "Release notes (Web Link)" [ 15334 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "workflow-durable-task-step PR 27 (Web Link)" [ 15335 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jtatum James Tatum made changes -
            Link This issue is related to JENKINS-41492 [ JENKINS-41492 ]
            jglick Jesse Glick made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-42671 [ JENKINS-42671 ]
            oleg_nenashev Oleg Nenashev made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            jamesdumay James Dumay made changes -
            Labels regression blue-pipeline-scrub regression
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-45616 [ JENKINS-45616 ]
            cleclerc Cyrille Le Clerc made changes -
            Link This issue is related to JENKINS-40484 [ JENKINS-40484 ]
            jglick Jesse Glick made changes -
            Assignee Jesse Glick [ jglick ]
            apgray Andrew Gray made changes -
            Comment [ May I request that this be raised to critical? 

            We have many many jobs relying on this working. 

            We are running 9 instances of 2.60.3 running as windows services in PROD on a Windows 2012 R2 box. ]
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-1910 (Web Link)" [ 18516 ]
            vivek Vivek Pandey made changes -
            Labels blue-pipeline-scrub regression blue-pipeline-scrub regression triaged-2018-11

              People

              • Assignee:
                Unassigned
                Reporter:
                jtatum James Tatum
              • Votes:
                26 Vote for this issue
                Watchers:
                51 Start watching this issue

                Dates

                • Created:
                  Updated: