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

Persistent Plugin doesn't work with declarative pipelines

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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!

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            greg2001 Gregory Moltchadski
            Reporter:
            gterziev Georgi Terziev
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: