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

Allow appending to the PATH in environment sections

    Details

    • Similar Issues:
    • Sprint:
      Declarative - 1.2

      Description

      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"

        Attachments

          Issue Links

            Activity

            naruda Conor Nevin created issue -
            Hide
            abayer Andrew Bayer added a comment -

            Hmmmmmm. Good question. PATH+WHATEVER definitely won't work as something to set, and PATH isn't yet available at the time we're processing the environment, so we need some way to let you get to PATH+WHATEVER...

            Show
            abayer Andrew Bayer added a comment - Hmmmmmm. Good question. PATH+WHATEVER definitely won't work as something to set, and PATH isn't yet available at the time we're processing the environment , so we need some way to let you get to PATH+WHATEVER ...
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            Hide
            abayer Andrew Bayer added a comment -

            Ah-ha, just realized that https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/110 should actually let us do this, with some parsing changes...

            Show
            abayer Andrew Bayer added a comment - Ah-ha, just realized that https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/110 should actually let us do this, with some parsing changes...
            Hide
            abayer Andrew Bayer added a comment -

            Grr, nope. That doesn't work after all - the compilation error is hitting too soon.

            Show
            abayer Andrew Bayer added a comment - Grr, nope. That doesn't work after all - the compilation error is hitting too soon.
            abayer Andrew Bayer made changes -
            Labels declarative pipeline declarative declarative-variable-and-method-resolution pipeline
            jamesdumay James Dumay made changes -
            Sprint Declarative - 1.2 [ 366 ]
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            Hide
            abayer Andrew Bayer added a comment -

            This is fixed as part of JENKINS-42753, which will be included in the upcoming Declarative 1.2 release.

            Show
            abayer Andrew Bayer added a comment - This is fixed as part of JENKINS-42753 , which will be included in the upcoming Declarative 1.2 release.
            abayer Andrew Bayer made changes -
            Link This issue depends on JENKINS-42753 [ JENKINS-42753 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            bitwiseman Liam Newman added a comment -

            Bulk closing resolved issues.

            Show
            bitwiseman Liam Newman added a comment - Bulk closing resolved issues.
            bitwiseman Liam Newman made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: