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

Set Env Variables for SCM with Checkout SCM

XMLWordPrintable

      Now that JENKINS-26100 has been resolved we should bake this into Declarative, too.

      This works fine in Scripted to set all scm properties into env variables:

      checkout(scm).each { k,v -> env.setProperty(k, v) }

      We should build this into Declarative by default.

       

            abayer Andrew Bayer
            hrmpw Patrick Wolf
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: