schedule setting for build periodically in hudson

来源:互联网 发布:电视和看电影软件 编辑:程序博客网 时间:2024/06/05 05:19

schedule setting for build periodically in hudson

转载自 lynna
最终编辑 sdwffzlll

Schedule的配置规则是有5个空格隔开的字符组成,从左到右分别代表:分 时 天 月 年。*代表所有,

                 0 12,20 * * * 表示在任何年任何月的任何天的12和20点的0分 进行构建

 

 

在Hudson中的解释是这样的:

This field follows the syntax of cron (with minor differences). Specifically, each line consists of 5 fields separated by TAB or whitespace:

MINUTE HOUR DOM MONTH DOW

MINUTEMinutes within the hour (0-59)HOURThe hour of the day (0-23)DOMThe day of the month (1-31)MONTHThe month (1-12)DOWThe day of the week (0-7) where 0 and 7 are Sunday.

To specify multiple values for one field, the following operators are available. In the order of precedence,

  • '*' can be used to specify all valid values.
  • 'M-N' can be used to specify a range, such as "1-5"
  • 'M-N/X' or '*/X' can be used to specify skips of X's value through the range, such as "*/15" in the MINUTE field for "0,15,30,45" and "1-6/2" for "1,3,5"
  • 'A,B,...,Z' can be used to specify multiple values, such as "0,30" or "1,3,5"

Empty lines and lines that start with '#' will be ignored as comments.

In addition, '@yearly', '@annually', '@monthly', '@weekly', '@daily', '@midnight', and '@hourly' are supported.

Examples

# every minute* * * * *# every 5 mins past the hour 5 * * * *


原创粉丝点击