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

Evaluated Groovy script should expose the current hudson.model.TaskListener

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Evaluated Groovy script should expose the current hudson.model.TaskListener so that scripts implementers can invoke hudson.model.Run#getEnvironment(hudson.model.TaskListener) (with the actual value) instead of invoking the deprecated hudson.model.Run#getEnvironment() which was deprecated since Jenkins 1.305 (EnvInject currently requires Jenkins ≥ 1.532.3):

          /**
           * @deprecated as of 1.305 use {@link #getEnvironment(TaskListener)}
           */
          public EnvVars getEnvironment() throws IOException, InterruptedException {
      

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Fiouz
          Path:
          src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectEnvVars.java
          src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-groovyScriptContent.html
          src/test/java/org/jenkinsci/plugins/envinject/EnvInjectEvaluatedGroovyScript.java
          http://jenkins-ci.org/commit/envinject-plugin/434ab11da3e59ab102a186b4cae3a5916248f8c8
          Log:
          JENKINS-31829 Add currentListener Groovy variable

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Fiouz Path: src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectEnvVars.java src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-groovyScriptContent.html src/test/java/org/jenkinsci/plugins/envinject/EnvInjectEvaluatedGroovyScript.java http://jenkins-ci.org/commit/envinject-plugin/434ab11da3e59ab102a186b4cae3a5916248f8c8 Log: JENKINS-31829 Add currentListener Groovy variable
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectEnvVars.java
          src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-groovyScriptContent.html
          src/test/java/org/jenkinsci/plugins/envinject/EnvInjectEvaluatedGroovyScriptTest.java
          http://jenkins-ci.org/commit/envinject-plugin/83f2ee3ef6fa74599fe2b5701b2d393a657aa9f7
          Log:
          Merge branch 'JENKINS-31829'

          Compare: https://github.com/jenkinsci/envinject-plugin/compare/caed755d7920...83f2ee3ef6fa

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectEnvVars.java src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-groovyScriptContent.html src/test/java/org/jenkinsci/plugins/envinject/EnvInjectEvaluatedGroovyScriptTest.java http://jenkins-ci.org/commit/envinject-plugin/83f2ee3ef6fa74599fe2b5701b2d393a657aa9f7 Log: Merge branch ' JENKINS-31829 ' Compare: https://github.com/jenkinsci/envinject-plugin/compare/caed755d7920...83f2ee3ef6fa
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Released in 1.93.1

          Show
          oleg_nenashev Oleg Nenashev added a comment - Released in 1.93.1

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              fchuong Frédéric Chuong
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: