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

Boolean input parameter ignores default value of false

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      If your pipeline groovy script has an input step which is a BooleanParameterDefinition, the default value is always true. Setting the default value to false has no effect.

      Example generated by snippet generator:

      input id: 'Test', message: 'testing123', ok: 'Deploy', parameters: [[$class: 'BooleanParameterDefinition', defaultValue: false, description: '', name: 'test']]
      

        Attachments

          Issue Links

            Activity

            Hide
            svanoort Sam Van Oort added a comment -

            Merged in now, pending release once I resolve a side effect from updating the plugin parent pom. 

            Show
            svanoort Sam Van Oort added a comment - Merged in now, pending release once I resolve a side effect from updating the plugin parent pom. 
            Hide
            svanoort Sam Van Oort added a comment -

            Released with pipeline stage view plugin 2.8

            Show
            svanoort Sam Van Oort added a comment - Released with pipeline stage view plugin 2.8
            Hide
            bchew1288 Brandon Chew added a comment -

            I've recently created a pipeline job using a Boolean Parameter and have noticed that this issue is still happening.  I'm using Pipeline Stage View plugin 2.9.  Did this get reverted somehow in 2.9?

            Show
            bchew1288 Brandon Chew added a comment - I've recently created a pipeline job using a Boolean Parameter and have noticed that this issue is still happening.  I'm using Pipeline Stage View plugin 2.9.  Did this get reverted somehow in 2.9?
            Hide
            bchew1288 Brandon Chew added a comment -

            I've recently created a pipeline job using a Boolean Parameter and have noticed that this issue is still happening.  I'm using Pipeline Stage View plugin 2.9.  Did this get reverted somehow in 2.9?

            Show
            bchew1288 Brandon Chew added a comment - I've recently created a pipeline job using a Boolean Parameter and have noticed that this issue is still happening.  I'm using Pipeline Stage View plugin 2.9.  Did this get reverted somehow in 2.9?
            Hide
            svanoort Sam Van Oort added a comment -

            Brandon Chew I'm quite confident we didn't revert this – are you absolutely sure this is happening with 2.9 or 2.10? Can you provide a case to reproduce?

            Show
            svanoort Sam Van Oort added a comment - Brandon Chew I'm quite confident we didn't revert this – are you absolutely sure this is happening with 2.9 or 2.10? Can you provide a case to reproduce?

              People

              • Assignee:
                jbq jbq
                Reporter:
                nkonstantakos Niko Konstantakos
              • Votes:
                6 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated: