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

Use EnvVarsResolver for Groovy scripts

    Details

    • 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.

        Attachments

          Activity

          Show
          edalquist Eric Dalquist added a comment - https://github.com/jenkinsci/scripttrigger-plugin/pull/1
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          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-13208 Use EnvVarsResolver for groovy scripts

          Get the environment variables for groovy scripts via the EnvVarsResolver

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - 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-13208 Use EnvVarsResolver for groovy scripts Get the environment variables for groovy scripts via the EnvVarsResolver

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              edalquist Eric Dalquist
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: