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

Environment variables not visible / linked for pipeline jobs

      In other job types, for a given build, if the EnvInject plugin is installed then "Environment variables" shows up as a link on the left sidebar. In addition, if Build Environment plugin is installed, it'll add a "Compare Environment" link to builds that lets you easily compare environment variables across builds.

      Both of these are very useful for troubleshooting build problems, but they're missing from Pipeline jobs.

      Not sure if this is something about Pipeline plugins themselves, or if those two plugins need to be updated to support pipeline jobs.

          [JENKINS-36224] Environment variables not visible / linked for pipeline jobs

          Jesse Glick added a comment -

          EnvInject is not, and will not be, compatible with Pipeline. Not sure about the other plugin.

          Jesse Glick added a comment - EnvInject is not, and will not be, compatible with Pipeline. Not sure about the other plugin.

          Adir Atias added a comment - - edited

          jglick  why it won't be supported ?

          The environment variables are really useful.

          especially after the build is done and you want to debug / compare / examine.

           

          Adir Atias added a comment - - edited jglick   why it won't be supported ? The environment variables are really useful. especially after the build is done and you want to debug / compare / examine.  

          Jesse Glick added a comment -

          Variables set by env.X = y are available via REST in a completed Pipeline build. If there is a “Build Environment” plugin somewhere, and it does not support Pipeline builds, file an RFE for it with label pipeline.

          Jesse Glick added a comment - Variables set by env.X = y are available via REST in a completed Pipeline build. If there is a “Build Environment” plugin somewhere, and it does not support Pipeline builds, file an RFE for it with label pipeline .

          Marc Esher added a comment -

          Thanks jglick. I've added JENKINS-47387 for the build-environment-plugin

          Marc Esher added a comment - Thanks jglick . I've added JENKINS-47387 for the build-environment-plugin

            recena Manuel Recena Soto
            marcesher Marc Esher
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: