Persistent Plugin doesn't work with declarative pipelines

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I am creating Pipeline job and adding one Persistent String Parameter to it, then just printing the parameter in the declarative pipeline stages.
      Expecting on every build the persistent string parameter to keep the value, with which it was called on the previous build, but eventually it is empty after the first build is done.

      How to reproduce:

       

      Here is simple PIPELINE code, which is reproducing the issue:

      pipeline {
          agent any

          environment {
              TEST = "${params.test}"
          }

          stages {
              stage('TEST') {
                  steps {echo TEST}
              }

          }
      }

      NOTE: The Persistent String parameter is working fine on Freestyle jobs!

            Assignee:
            Gregory Moltchadski
            Reporter:
            Georgi Terziev
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: