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

GString variables in environment block must use braces

    Details

    • Epic Link:
    • Similar Issues:

      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

            Hide
            abayer Andrew Bayer added a comment -

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

            Show
            abayer Andrew Bayer added a comment - Huuuuuh. I thought this worked, but I'll double-check.
            Hide
            abayer Andrew Bayer added a comment -

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

            Show
            abayer Andrew Bayer added a comment - Definitely fixed in JENKINS-42753 , which will be in the Declarative 1.2 release.

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                chrylis Christopher Smith
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: