I have a pipeline build that uses the ExtendedChoice plugin to let a user 
choose which profiles to build from a multimodule maven project.

[ ] Everything
[ ] UI
[ ] Backend
[ ] Admin tools

Blue Ocean does not prompt for parameters when the build is Run, so I 
assume I need to prompt for input. I'm having difficult figuring out the 
magic to allow checkboxes for input. I'm looking at the documentation here 
https://jenkins.io/doc/pipeline/steps/pipeline-input-step/#input-wait-for-interactive-input,
 
but it doesn't provide much help. Are there any examples of different types 
of input?

Here are two inputs that I was able to get working...

def userInput = input(
 id: 'userInput', message: 'Let\'s promote?', parameters: [
 [$class: 'TextParameterDefinition', defaultValue: 'uat', description: 
'Environment', name: 'env'],
 [$class: 'BooleanParameterDefinition', defaultValue: true, description: 
'Target', name: 'target']
]) 

Can anyone point me to others that might support checkboxes?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bd7025d4-b833-4712-a165-ddd784e6c9cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to