如何延迟触发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/

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...