I am using 'choice' parameter in Jenkins pipeline(Declarative) and I have over 25 different parameters. I am looking to group the parameters into 4/5 choices but still want the option to be able to pick only one item from the group when necessary.

  1. Group 1

    • Item 1
    • Item 2
    • Item 3
  2. Group 2

    • item 4
    • item 5
    • item 6

Any help will be greatly appreciated.

Thank you,

  • Managed to get this done using Groovy code. I wish there was a built in function in Jenkins pipeline though. – Eran Mor Apr 11 at 18:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.