I got a question is there any possibilities to make the choices to be checkbox or multi-select choices instead of just single choice?
Here is my pipeline code:
pipeline {
agent any
stages {
stage('User Selection') {
steps {
script {
def userChoice = input(
id: 'cherryPick',
message: 'Choose an option:',
parameters: [
choice(name: 'Options', choices: ['Figure 1', 'Figure 2', 'Figure 3'])
]
)
echo "User selected: ${userChoice}"
}
}
}
}
}