Details
-
New Feature
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
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.
Attachments
Issue Links
- is duplicated by
-
JENKINS-45223 Pipeline jobs do not have access to env.BRANCH
-
- Resolved
-
- links to
Sadly, we can't do this 'til Declarative depends on core 2.60 or later, so it'll be a while.