jenkins每天自动构建一次怎么设置

2024年11月18日 02:53
有1个网友回答
网友(1):

你好。

选择要设置Project  -》 配置 -》构建触发器 -》日程表   内设置

比如 你想设置 每天 早上4点自动构建。如下图所示

具体说明请参考以下

# every fifteen minutes (perhaps at :07, :22, :37, :52)
H/15 * * * *
# every ten minutes in the first half of every hour (three times, perhaps at :04, :14, :24)
H(0-29)/10 * * * *
# once every two hours at 45 minutes past the hour starting at 9:45 AM and finishing at 3:45 PM every weekday.
45 9-16/2 * * 1-5
# once in every two hours slot between 9 AM and 5 PM every weekday (perhaps at 10:38 AM, 12:38 PM, 2:38 PM, 4:38 PM)
H H(9-16)/2 * * 1-5
# once a day on the 1st and 15th of every month except December
H H 1,15 1-11 *