Jenkins Build Pipeline Scheduled Trigger

前端 未结 6 780
独厮守ぢ
独厮守ぢ 2020-12-13 06:15

How can a build pipeline be scheduled to execute at a certain time of the night just like a regular job can be?

6条回答
  •  旧时难觅i
    2020-12-13 06:48

    Declarative pipeline has triggers directive, one uses it like this:

    triggers { cron('H 4/* 0 0 1-5') }
    

    I took it from Pipeline Syntax docs

提交回复
热议问题