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

Boolean input parameter ignores default value of false

XMLWordPrintable

      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']]
      

        1. checkbox.png
          17 kB
          Hendrik Brinkmann

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

              Created:
              Updated: