[英]Want to have a new build in Jenkins at every CVS changes, but not more than one build every two days
how to schedule to meet this requirement? 如何安排满足此要求?
Your need requires a custom, "smart" trigger for the build. 您的需求需要一个自定义的“智能”触发器进行构建。
I have a similar need, and I use the Jenkins ScriptTrigger plugin to execute a "smart" shell script that will evaluate the conditions and decide if to start a build or not. 我也有类似的需求,并且我使用Jenkins ScriptTrigger插件执行“智能” shell脚本,该脚本将评估条件并决定是否开始构建。
Example logic in script: 脚本中的示例逻辑:
I hope this helps. 我希望这有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.