Groovy 使用Uno选择插件的参数化作业

Groovy 使用Uno选择插件的参数化作业,groovy,jenkins,jenkins-plugins,Groovy,Jenkins,Jenkins Plugins,我正在使用基于以前的选择选择参数值 (这个插件帮助我减少了参数数量。我可以根据平台选择为多个平台重用相同的参数) 我使用groovy脚本选择参数值 但是加载参数需要花费太多的时间 有什么方法可以加快这个过程吗?我曾经遇到过类似的问题,我也在使用groovy脚本来调用shell脚本。我做了以下几件事来减少时间:- 当您单击build with Parameters时,所有任务(脚本同时运行)将立即执行。 正确使用其他条件。 也可以使用回退脚本 例如:- 您可以使用以下参数: 1) 国家 2) 陈述

我正在使用基于以前的选择选择参数值

(这个插件帮助我减少了参数数量。我可以根据平台选择为多个平台重用相同的参数)

我使用groovy脚本选择参数值

但是加载参数需要花费太多的时间


有什么方法可以加快这个过程吗?

我曾经遇到过类似的问题,我也在使用groovy脚本来调用shell脚本。我做了以下几件事来减少时间:-

当您单击build with Parameters时,所有任务(脚本同时运行)将立即执行。 正确使用其他条件。 也可以使用回退脚本

例如:-

您可以使用以下参数:

1) 国家 2) 陈述 3) 城市

每个参数取决于以前的值

1) Try to only display contents on Jenkins front-end.(cat command).
2) Call a script if only it matches valid values in the previous parameter.   
3) minimum on the fly scripts.
4) optimize delays/sleep according to your load time.
5) Remove any extensions whether in chrome/Firefox.
5) Try using the same page in incognito mode.
6) If options are invalid through invalid option without going into any computation.
7) Uninstall plugin which are not required.
将添加更多的建议,因为我发现

我会要求你也请更新,如果你找到任何方法来优化时间