jenkins Build periodically 参数配置

转自

http://blog.csdn.net/zhaoxu0312/article/details/8933371

http://blog.csdn.net/roothomes/article/details/8736778


jenkins build periodcally有5个参数

实例:


H 17 * * *

17点左右~

H 4 * * 1-5

MINUTE HOUR DOM MONTH DOW

第一个参数代表的是分钟 minute,取值 0~59;

第二个参数代表的是小时 hour,取值 0~23;

第三个参数代表的是天 day,取值 1~31;

第四个参数代表的是月 month,取值 1~12;

最后一个参数代表的是星期 week,取值 0~7,0 和 7 都是表示星期天。

所以 0 * * * * 表示的就是每个小时的第 0 分钟执行一次构建。

 
  

To allow periodically scheduled tasks to produce even load on the system, the 'H' token can be used. For example, people often use '0 0 * * *' for a daily job, but this ends up causing a large spike in midnight. In contrast, doing 'H H * * *' would still execute a job once a day, but the actual time of the day this gets executed will be spread over by Jenkins.

The 'H' token can be used with a range. For example, 'H H(0-7) * * *' means some time between midnight to 7:59am.

The 'H' token can be thought of as a random value over a range, but it actually is a hash of the job name, not a random function, so that the value remains stable for any given project.



你可能感兴趣的:(jenkins Build periodically 参数配置)