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

Allow use of double quoted strings for pipeline variables

XMLWordPrintable

    • Blue Ocean - Candidates

      Problem
      For some steps, such as notifications, it is pretty common to want to be able to get to pipeline variables (as opposed to environment variables). 

      In pipeline text this generally means you use double quotes, and string interpolation in the parameters, howrever the editor uses single quotes and avoids groovy string expansion. 

      It would be nice to be able to allow dynamic double quoted strings as an option somehow. 

      Steps to reproduce

      • Use a notification step - try to get the pipeline name into the message string
      • Use an environment variable, try to use "credentials('abc')" to fetch the cred value (it will only be literally what you type in)

      Out of scope: 

      • A UI to select available pipeline variables

            Unassigned Unassigned
            michaelneale Michael Neale
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: