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

GString variables in environment block must use braces

    XMLWordPrintable

Details

    Description

      In an environment block, GString substitutions using the simple "$VAR" syntax fail with a missing binding, while "${VAR}" works. I expect this is an odd side effect of delegation rules, but it's surprising since it's hidden behind the CPS processor and is worth documenting. (There's no "documentation" tag or I'd apply it here.)

      Attachments

        Issue Links

          Activity

            chrylis Christopher Smith created issue -
            abayer Andrew Bayer added a comment -

            Huuuuuh. I thought this worked, but I'll double-check.

            abayer Andrew Bayer added a comment - Huuuuuh. I thought this worked, but I'll double-check.
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Link This issue is duplicated by JENKINS-43685 [ JENKINS-43685 ]
            jamesdumay James Dumay made changes -
            Epic Link JENKINS-45422 [ 183590 ]
            abayer Andrew Bayer added a comment -

            Definitely fixed in JENKINS-42753, which will be in the Declarative 1.2 release.

            abayer Andrew Bayer added a comment - Definitely fixed in JENKINS-42753 , which will be in the Declarative 1.2 release.
            abayer Andrew Bayer made changes -
            Link This issue depends on JENKINS-42753 [ JENKINS-42753 ]
            abayer Andrew Bayer made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            bitwiseman Liam Newman added a comment -

            Bulk closing resolved issues.

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

            People

              abayer Andrew Bayer
              chrylis Christopher Smith
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: