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

Allow appending to the PATH in environment sections

    • Declarative - 1.2

      You should be able to append to the path in the environment sections of a pipeline. Scripted pipelines support this through PATH+WHATEVER syntax in the `withEnv` step.

      Attempting to use PATH = "${PATH}:..." at a top level results in this error being thrown "groovy.lang.MissingPropertyException: No such property: PATH", and attempting to use PATH+WHATEVER results in "(PATH + GO) is a binary expression, but it should be a variable expression"

          [JENKINS-42281] Allow appending to the PATH in environment sections

          Conor Nevin created issue -
          Andrew Bayer made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Andrew Bayer made changes -
          Labels Original: declarative pipeline New: declarative declarative-variable-and-method-resolution pipeline
          James Dumay made changes -
          Sprint New: Declarative - 1.2 [ 366 ]
          James Dumay made changes -
          Rank New: Ranked higher
          Andrew Bayer made changes -
          Link New: This issue depends on JENKINS-42753 [ JENKINS-42753 ]
          Andrew Bayer made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Liam Newman made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            abayer Andrew Bayer
            naruda Conor Nevin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: