-
Bug
-
Resolution: Unresolved
-
Minor
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']]
- is duplicated by
-
JENKINS-40954 Honor defaultValue=false in BooleanParameterDefinition
-
- Closed
-
- links to
[JENKINS-36543] Boolean input parameter ignores default value of false
Component/s | New: workflow-plugin [ 18820 ] | |
Component/s | Original: core [ 15593 ] |
Description |
Original:
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']] |
New:
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']]}} |
Description |
Original:
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']]}} |
New:
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: {code:java} input id: 'Test', message: 'testing123', ok: 'Deploy', parameters: [[$class: 'BooleanParameterDefinition', defaultValue: false, description: '', name: 'test']] {code} |
Assignee | New: Rupin R Nath [ rupinr ] | |
Resolution | New: Cannot Reproduce [ 5 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 173256 ] | New: JNJira + In-Review [ 199424 ] |
Component/s | New: pipeline-general [ 21692 ] |
Component/s | Original: workflow-plugin [ 18820 ] |
Attachment | New: checkbox.png [ 33956 ] |
I tried in Jenkins 2.13-SNAPSHOT build. I did not face any such issue.