-
Bug
-
Resolution: Duplicate
-
Major
See PR 198 for details. Intuitively you would expect the scm global variable to be defined in all loaded code, but it is only available from the main script, and there is no straightforward way for other CpsScript instances to get it.
Need to find a way to make global variables reliably be accessible from all script files loaded in a flow build. Current idea is to save them in CpsThreadGroup.
- is related to
-
JENKINS-30414 RejectedAccessException: Scripts not permitted to use method groovy.lang.GroovyObject getProperty java.lang.String (org.jenkinsci.plugins.workflow.cps.CpsClosure2.docker)
- Resolved
-
JENKINS-30531 Define SCMRevisionAction from SCMBinder
- Resolved
- links to