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

Environment variables referencing other variables broken

      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
      

          [JENKINS-41339] Environment variables referencing other variables broken

          James Tatum created issue -
          Andrew Bayer made changes -
          Assignee New: Jesse Glick [ jglick ]
          Alexander Opitz made changes -
          Component/s New: durable-task-plugin [ 18622 ]
          Daniel Beck made changes -
          Link New: This issue is duplicated by JENKINS-41227 [ JENKINS-41227 ]
          Jesse Glick made changes -
          Link New: This issue blocks JENKINS-40734 [ JENKINS-40734 ]
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-28990 [ JENKINS-28990 ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Labels New: regression
          Jesse Glick made changes -
          Remote Link New: This issue links to "Release notes (Web Link)" [ 15334 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "workflow-durable-task-step PR 27 (Web Link)" [ 15335 ]
          Jesse Glick made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

            Unassigned Unassigned
            jtatum James Tatum
            Votes:
            27 Vote for this issue
            Watchers:
            52 Start watching this issue

              Created:
              Updated: