如何解决如何延迟触发Jenkins下游构建作业?
在test-upstream
管道作业中,我按以下方式调用test-downstream
:
build job: "test-downstream",parameters: [[$class: 'LabelParameterValue',name: 'computer',label: env.NODE_NAME]]
它可以工作,但是有什么办法可以延迟启动,或者安排它在30分钟后运行?
寻找类似的东西
build job: "test-downstream",delayStart: 30m,label: env.NODE_NAME]]
解决方法
quietPeriod: <number in seconds>
是我一直在寻找的参数,它有效!
quietPeriod (optional)
Optional alternate quiet period (in seconds) before building. If unset,defaults to the quiet period defined by the downstream project (or finally to the system-wide default quiet period).
参考- https://www.jenkins.io/doc/pipeline/steps/pipeline-build-step/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。