Jenkinsfile can't access environment variables in parameter descriptions

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      This does not work:

      pipeline {
          environment {
              FOO = "bar"
          }
          parameters {
              string(name: 'BAZ', defaultValue: '', description: "Foo = $env.FOO")
          }
      

      The description for the parameter is always "Foo = null" instead of "Foo = bar".

            Assignee:
            Andrew Bayer
            Reporter:
            Elizabeth Chatman
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: