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

Declarative pipeline parameters default values are not loaded at first job run

      We have github organization folder with Jenkinsfile with declerative pipeline. We use parameters in the Jenkinsfile like:

      parameters {
        string(defaultValue: 'eu-west-1', description: 'The AWS region', name: 'awsRegion')
      }

      First build always fails as the parameters are not getting initialized with default values . All following builds for the same PR work with parameters getting the default values.

       

          [JENKINS-42922] Declarative pipeline parameters default values are not loaded at first job run

          Moshe Nadler created issue -
          Jesse Glick made changes -
          Link New: This issue duplicates JENKINS-41929 [ JENKINS-41929 ]
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Marcel 'childNo͡.de' Trautwein made changes -
          Link New: This issue duplicates JENKINS-40574 [ JENKINS-40574 ]
          Marcel 'childNo͡.de' Trautwein made changes -
          Link Original: This issue duplicates JENKINS-41929 [ JENKINS-41929 ]

            Unassigned Unassigned
            moshe0076 Moshe Nadler
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: