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

EnvInject plugin using a cached value for ${WORKSPACE}


    • Similar Issues:


      Starting yesterday, the EnvInject plugin seems to suddenly start using a cached value for ${WORKSPACE}. We have the following value in "Properties Content" under "Inject environment variables to the build process":


      When working properly, in the console output this appears as:

      [EnvInject] - Injecting as environment variables the properties content

      Over the past couple of days this has suddenly started appearing as:

      [EnvInject] - Injecting as environment variables the properties content

      Which is using a workspace path from another job. This causes this job, and all other jobs, to fail. If I restart Jenkins the problem goes away, for awhile, but at some point that exact same path starts getting used by the EnvInject plugin again. This cycle has happened 4 times over the past couple of days, where jobs will run fine for awhile and then suddenly start failing because the path injected changes from:




      When this first happened we downgraded the plugin from 1.78 to 1.77 but this hasn't addressed the problem.

      Any help anyone can provide would be greatly appreciated.



          bobsilverberg Bob Silverberg created issue -
          gbois Gregory Boissinot made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          gbois Gregory Boissinot made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          davehunt Dave Hunt made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          magjac Magnus Jacobsson made changes -
          Attachment magjac-workspace-test_config.xml [ 23201 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 147046 ] JNJira + In-Review [ 186102 ]


            • Assignee:
              gbois Gregory Boissinot
              bobsilverberg Bob Silverberg
            • Votes:
              6 Vote for this issue
              12 Start watching this issue


              • Created: