In the reference parameter option write a comma separated list of the form parameters you would like your script to use. Then use them as parameters in your script. I can provide some additional details when I get to work later today. On May 19, 2014 6:13 AM, "alok kumar" <[email protected]> wrote:
> Hi Loannis, > Thanks for guiding me. > Can you please provide me an example groovy script meant to do this kind > of work? > I am a little lost as I can even see any help icon for the way the script > should be written using the other job parameters. > > Thanks, > Alok > > On Friday, 9 May 2014 23:08:31 UTC+5:30, Ioannis Moutsatsos wrote: >> >> I think that all the capability that you need is available to theuno-choice >> plugin<https://github.com/biouno/uno-choice-plugin>developed by the >> BioUno <http://biouno.org/> project. >> >> This plugin generates *dynamic choice selections* from a groovy script. >> You can use *one or more parameters* from the current Jenkins job form >> to parameterize the groovy script and it will update the list when on eof >> them changes (before submitting the build). >> Finally, you can display the choices as a single or multi-select drop >> down list or as a checkbox or radio button options. >> >> The plug-ins developed for BioUno are too niche-specific and thus aren’t >> released to Jenkins update center. In order to install the plug-ins you >> have to add the BioUno update center. >> See here <http://biouno.org/jenkins-update-site.html>for instructions >> >> Hope it helps. >> Best regards >> Ioannis >> >> On Monday, May 5, 2014 11:05:32 AM UTC-4, alok kumar wrote: >>> >>> Hi All, >>> We have a requirement in one of our Jenkins parameterized build project >>> where we need to populate a selection of options in one parameter based on >>> the selection that was made before in another parameter i.e. dynamically >>> populating the second parameter based on the first one. >>> >>> What is the best way to do this? I need to have check boxes as options >>> in the second parameter based on the selection of a single choice parameter >>> in the first one. >>> >>> E.g. say that we select car in the first parameter, I should get to >>> choose from Ford, Toyota, Honda, Subaru, etc in the next parameter and that >>> should be check boxes. >>> >>> Is there a way to achieve this requirement? Also, how do we access the >>> value of a parameter in a groovy script in another parameter? >>> >>> Any help would be deeply appreciated. >>> >>> Thanks in advance, >>> Alok >>> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "Jenkins Developers" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jenkinsci-dev/3kfNtNr-4u4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
