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

Initial run of parameterized pipeline build should return properties default value

      colored textOn the first build the config parameter doesn't exist but it'd be great if on this initial build Config parameter could be setup with the default value.

      For example,

      properties ([[$class: 'ParametersDefinitionProperty', parameterDefinitions: [[$class: 'StringParameterDefinition', defaultValue: 'Release', description: '', name: 'configParam']]]]) 
      

      So

      binding.hasVariable('configParameter') should return true, and should has the value Release

          [JENKINS-35698] Initial run of parameterized pipeline build should return properties default value

          Emilio Escobar created issue -
          Jesse Glick made changes -
          Description Original: On the first build the config parameter doesn't exist but it'd be great if on this initial build Config parameter could be setup with the default value.

          For example,

          properties ([[$class: 'ParametersDefinitionProperty', parameterDefinitions: [[$class: 'StringParameterDefinition', defaultValue: 'Release', description: '', name: 'configParam']]]])

          So

          binding.hasVariable('configParameter') should return true, and should has the value 'Release'
          New: On the first build the config parameter doesn't exist but it'd be great if on this initial build Config parameter could be setup with the default value.

          For example,

          {code}
          properties ([[$class: 'ParametersDefinitionProperty', parameterDefinitions: [[$class: 'StringParameterDefinition', defaultValue: 'Release', description: '', name: 'configParam']]]])
          {code}

          So

          {{binding.hasVariable('configParameter')}} should return true, and should has the value {{Release}}
          Labels New: multibranch
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-27295 [ JENKINS-27295 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 172124 ] New: JNJira + In-Review [ 184573 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Jesse Glick made changes -
          Component/s New: workflow-multibranch-plugin [ 21465 ]
          Component/s Original: pipeline [ 21692 ]
          Jesse Glick made changes -
          Labels Original: multibranch
          Jesse Glick made changes -
          Remote Link New: This issue links to "workflow-multibranch PR 34 (Web Link)" [ 14921 ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Component/s New: workflow-cps-plugin [ 21713 ]

            jglick Jesse Glick
            escoem Emilio Escobar
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: