groovy - Parameterized job using Uno-choice plugin -
i'm using uno choice plugin select parameter values based on previous selections.
(this plugin helped me reduce parameter count. can reuse same parameter multiple platform based on platform selection)
i used groovy script select parameter values.
but takes time load parameters.
is there way speed process?
i had faced similar issues , using groovy scripts cal shell scripts.i did following things reduce time:-
when click on build parameters task(scripts run @ once together) performed @ once. use else conditions properly. use fallback script.
for eg:-
you have parameters such
1) country 2) state 3) city
each parameter depends on previous values.
1) try display contents on jenkins front-end.(cat command). 2) call script if matches valid values in previous parameter. 3) minimum on fly scripts. 4) optimize delays/sleep according load time. 5) remove extensions whether in chrome/firefox. 5) try using same page in incognito mode. 6) if options invalid through invalid option without going computation. 7) uninstall plugin not required.
will add more suggestions find.
i request please update if find method optimize time.
Comments
Post a Comment