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

Multiple "Inject Environment Variables" Build Steps All Show Same Content

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: envinject-plugin
    • Labels:
      None
    • Environment:
      Windows Server 2003 SP2
    • Similar Issues:

      Description

      The "Inject Environment Variables" build step does not allow for multiple build steps, but simply duplicates the first "Inject Environment Variables" build step regardless of the content that was added.

      Steps to reproduce:
      1) In the build steps phase, add "Inject Environment Variables" build step
      2) Fill the build step in with something (Properties File Path or Properties Content does not matter).
      3) Add another "Inject Environment Variables" build step.
      4) Fill in that build step as well with something different
      5) Select Save
      6) Select configure again to return to the job configuration

      Result:
      Both "Inject Environment Variables" content will display identical data, which will be the value of that from step #2 above. So essentially there is no way to invoke environment variables in multiple build steps.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/envinject/EnvInjectBuilder.java
          http://jenkins-ci.org/commit/envinject-plugin/7875fe836527a7a29bead2023c640517c70d74e0
          Log:
          Fixed JENKINS-11063

          Compare: https://github.com/jenkinsci/envinject-plugin/compare/86cef09...7875fe8

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/envinject/EnvInjectBuilder.java http://jenkins-ci.org/commit/envinject-plugin/7875fe836527a7a29bead2023c640517c70d74e0 Log: Fixed JENKINS-11063 Compare: https://github.com/jenkinsci/envinject-plugin/compare/86cef09...7875fe8
          Hide
          gbois Gregory Boissinot added a comment -

          Fixed in 0.16

          Show
          gbois Gregory Boissinot added a comment - Fixed in 0.16

            People

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

              Dates

              • Created:
                Updated:
                Resolved: