alok kumar (2013-10-23 15:51):
Hi All,
I am working on creating a parametrized build trigger job in order to
accept inputs from the users before the build is triggered.
All is well, but, then I need an option where i can disable or enable
a particular parameter based on another parameter.
e.g. Say I have a choice parameter where the user can choose to build
linux or windows. Now based on the choice my node label parameter
should show only the linux machines as the machines that can be chosen
from. Similarly, if a check box parameter is chosen, it should disable
one of the string parameters.
Is it possible to achieve this kind of functionality using the
parametrized build trigger OR is there any other way to achieve this?
AFAIK this is not possible. There is issue JENKINS-19002
<https://issues.jenkins-ci.org/browse/JENKINS-19002>.
But you can achieve something similar with JavaScript and special
parameters. This way, using certain naming conventions, you can group
parameters and use checkbox as a trigger that opens the group.
The JavaScript needed is attached to the issue. Be sure to use latest
version of the attachment.
Regards,
Nux.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.