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

Allow access to environment variables as Groovy variables

    XMLWordPrintable

Details

    Description

      People often confuse Groovy variables with environment variables and do not grasp how to access the latter from outside a forked process.

      CpsScript.getProperty ought to fall back to EnvActionImpl.getProperty as a convenience, so that you can access environment variables from a script as PROP_NAME in addition to env.PROP_NAME.

      Attachments

        Issue Links

          Activity

            People

              jglick Jesse Glick
              jglick Jesse Glick
              Votes:
              8 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: