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

EnvInject Properties are lost when 'properties' is used in a pipeline step


    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: envinject-plugin
    • Labels:
    • Environment:
      Jenkins 2.32.1 LTS, EnvInject 1.93.1
    • Similar Issues:


      When using envinject in a pipeline it works, unless you add a `properties` step to your pipeline script. 

      In that case the envinject properties (along with all other properties are being removed). This goes along with such a warning in the build logs:

      [Pipeline] properties
      WARNING: The properties step will remove all JobPropertys currently configured in this job, either from the UI or from an earlier properties step.
      This includes configuration for discarding old builds, parameters, concurrent builds and build triggers.
      WARNING: Removing existing job property '[Environment Inject] -Setup a build environment'
      WARNING: Removing existing job property 'Build triggers'
      [Pipeline] node


      Not sure if this is an issue that can be solved on the envinject side, but it's definitively an incompatibility and I don't have a workaround yet...



          Issue Links


            tknerr Torben Knerr created issue -
            tknerr Torben Knerr made changes -
            Field Original Value New Value
            Epic Link JENKINS-42614 [ 179553 ]
            tknerr Torben Knerr made changes -
            Link This issue is related to JENKINS-41146 [ JENKINS-41146 ]
            jglick Jesse Glick made changes -
            Link This issue duplicates JENKINS-44848 [ JENKINS-44848 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]


              • Assignee:
                oleg_nenashev Oleg Nenashev
                tknerr Torben Knerr
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created: