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

Initial run of parameterized pipeline build should return properties default value

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            escoem Emilio Escobar created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Description 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'
            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 multibranch
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-27295 [ JENKINS-27295 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 172124 ] JNJira + In-Review [ 184573 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Component/s workflow-multibranch-plugin [ 21465 ]
            Component/s pipeline [ 21692 ]
            jglick Jesse Glick made changes -
            Labels multibranch
            jglick Jesse Glick made changes -
            Remote Link This issue links to "workflow-multibranch PR 34 (Web Link)" [ 14921 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Component/s workflow-cps-plugin [ 21713 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "workflow-cps PR 73 (Web Link)" [ 14935 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "workflow-multibranch PR 36 (Web Link)" [ 14936 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            xmiklis Mika Karjalainen made changes -
            Link This issue is duplicated by JENKINS-37330 [ JENKINS-37330 ]
            gpkirk01 Geoff Kirk made changes -
            Description 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}}
            {color:red}colored text{color}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}}
            ahuntpindrop Alex Hunt made changes -
            Link This issue relates to JENKINS-40235 [ JENKINS-40235 ]

              People

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

                Dates

                Created:
                Updated:
                Resolved: