
При работе с параметром Active Choice CheckBox, можно выбрать значения по умолчанию добавив параметр ":selected"
Pipeline:
properties([
parameters([
[$class: 'CascadeChoiceParameter',
choiceType: 'PT_CHECKBOX',
description: 'Select environment',
filterLength: 1,
filterable: false,
name: 'Environment',
script: [
$class: 'GroovyScript',
script: [
classpath: [],
sandbox: false,
script:
'return[\'Development:selected\',\'Production:selected\']'
]
]
]
])
])
При сборке с параметрами сразу два окружения, "Development" и "Production" будут выбраны по умолчанию
