Details
-
Type:
Improvement
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: scripttrigger-plugin
-
Labels:None
-
Similar Issues:
Description
Currently groovy scripts only have access to the node environment variables unlike shell scripts which use EnvVarsResolver and have access to the job variables as well.
Code changed in jenkins
User: Eric Dalquist
Path:
src/main/java/org/jenkinsci/plugins/scripttrigger/groovy/GroovyScriptTrigger.java
src/main/java/org/jenkinsci/plugins/scripttrigger/groovy/GroovyScriptTriggerExecutor.java
http://jenkins-ci.org/commit/scripttrigger-plugin/726ad01dc8d9603f7e8c6c1b93c99cc8e7138332
Log:
JENKINS-13208Use EnvVarsResolver for groovy scriptsGet the environment variables for groovy scripts via the EnvVarsResolver