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

EnvInject always override build parameters in the Build::getEnvironment() API

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • envinject-plugin
    • None
    • 1.91.4

      By default the plugin does not override build params. It's being managed by BuildEnvVarsContributor, which somehow is being ignored in the Run:getEnvironment() API => results of API calls differ from the what users see in builds.

      It also leads to the improper value in "Show Env Vars" action

          [JENKINS-29905] EnvInject always override build parameters in the Build::getEnvironment() API

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          pom.xml
          src/test/java/org/jenkinsci/plugins/envinject/EnvInjectJobPropertyTest.java
          http://jenkins-ci.org/commit/envinject-plugin/d00eed29268faec671600a6d85e7ef0595bd48da
          Log:
          Add tne tests for EnvInjectJobProperty including a direct test for JENKINS-29905

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: pom.xml src/test/java/org/jenkinsci/plugins/envinject/EnvInjectJobPropertyTest.java http://jenkins-ci.org/commit/envinject-plugin/d00eed29268faec671600a6d85e7ef0595bd48da Log: Add tne tests for EnvInjectJobProperty including a direct test for JENKINS-29905

            gbois Gregory Boissinot
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: