Jenkins Build Pipeline Scheduled Trigger

前端 未结 6 777
独厮守ぢ
独厮守ぢ 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条回答
  •  生来不讨喜
    2020-12-13 06:45

    You can set the job parameters using the following syntax:

    properties([pipelineTriggers([cron('H 23 * * *')])])
    

    Adding this line to your build script or Jenkinsfile will configure the job to run every night at 11PM.

提交回复
热议问题