You have to create a list from the return value of the library step. I don't know what library step you are using so cannot provide specific example.
On Sat, Dec 19, 2020, 12:59 AM Ven H <venh....@gmail.com> wrote: > Thanks a lot, Senthil. Can it be a Shared Library Step or a Class method > only?. It will be great, if you can please help with some examples. > > Regards, > Venkatesh > > > On Sat, Dec 19, 2020 at 12:48 AM Senthil Nathan < > m.s.senthilnat...@gmail.com> wrote: > >> Yes. In below example the choice_list can come from a shared pipeline >> library. >> >> Eg) >> Jenkinsfile: >> ======== >> choice_list=["choice1", "choice2", choice3"] >> properties([ >> >> >> parameters([ >> >> >> choice(name: 'mychoiceparam', choices:choice_list, >> description: 'my choices')]) >> ]) >> >> On Fri, Dec 18, 2020 at 10:53 AM Ven H <venh....@gmail.com> wrote: >> >>> Is it possible to populate a Choice parameter values (choices) with >>> values retrieved from a Shared Library Step? Please help. >>> >>> Regards, >>> Venkatesh >>> >>> -- >>> 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/CAPp28erSn6zVWDG3--wTLgWT%2BGqVPSBWWwfvrNicqH0B3pZYdQ%40mail.gmail.com >>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPp28erSn6zVWDG3--wTLgWT%2BGqVPSBWWwfvrNicqH0B3pZYdQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> 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/CAJgiyW_9K9XjVL%2BoJPDhAGsN6eFGGY4BDcg-LECrYEZM%3DCWhkw%40mail.gmail.com >> <https://groups.google.com/d/msgid/jenkinsci-users/CAJgiyW_9K9XjVL%2BoJPDhAGsN6eFGGY4BDcg-LECrYEZM%3DCWhkw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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/CAPp28epAOCv%3DaB2GR-xBpOOWpF%2B5X0zjp20zN5rGiqsaY_Q1_Q%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/CAPp28epAOCv%3DaB2GR-xBpOOWpF%2B5X0zjp20zN5rGiqsaY_Q1_Q%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/CAJgiyW9zXM51G3mhCgUt3xx3N8z%3Dw0J70ngmRQqO9RmAE%2BZmSQ%40mail.gmail.com.