Hello all, 
We developed a plug-in in the BioUno project [1], initially based on the 
Dynamic Parameter Plug-in [2], but that followed a different approach for 
dynamic parameters. It provides parameters that are also rendered from Groovy 
scripts (per job script or via Scriptler integration) **but that can be related 
to other parameters**.
It utilizes JavaScript (FWIW dynamicparameter-plugin code is 2.8% JavaScript 
according to GitHub interface and uno-choice's is 43.9%) to monitor the HTML 
elements of one parameter, and trigger changes in other parameters. This way, 
you can easily create many parameters, like Maven Group ID, Artifact ID and 
Versions, that are dynamically updated.
Quick example: The Maven group ID could be a "Uno Choice Dynamic Choice 
Parameter" that returns a list of maven group IDs in some Maven repo using 
Groovy. Once the user selects a group ID, the artifact ID (a "Uno Choice 
Cascade Dynamic Choice Parameter") would automatically get updated, and its 
Groovy script rendered. The selected group ID would be available to the 
artifact id Groovy script as a variable. This way your script can load only the 
artifacts related to the selected group ID.
Attached is a GIF file with another example with a State parameter that 
dynamically updates the City parameter accordingly. 
The following Wiki page has been created and contains further information and 
examples: https://wiki.jenkins-ci.org/display/JENKINS/Uno+Choice+Plugin There 
are other features that were added to the plug-in such as hidden parameters, 
parameter filtering, self-referenced parameters and more, that I believe 
Ioannis could explain much better if necessary.
GitHub repository: https://github.com/biouno/uno-choice-plugin/GitHub user IDS: 
@kinow and @imoutsatsos
If the plug-in gets accepted, I'll adjust the pom.xml, and will cut a 1.0 
release.
Thank you!Bruno
[1] http://biouno.org/[2] 
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Dynamic+Parameter+Plug-in

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/50262896.2043921.1424179818746.JavaMail.yahoo%40mail.yahoo.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to