Poll SCM Setup Rules

Source: Internet
Author: User

MINUTE HOUR DOM MONTH DOW

MINUTE How many minutes in an hour (0-59)

HOUR hours in the day (0-23 hours)

DOM number of days in one months (1-31)

Month Monthly (1-12)

DOW Week (0-7), of which 0 and 7 both represent Sunday.

If you want to specify a field that allows multiple values, follow the procedure provided below (specified).
The order of precedence is as follows:

The ' * ' 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 jump the value of an X within a specified range, such as "*/15" in the minute field means "0,15,30,45", "1-6/2" means "1,3,5".

' A, b,..., Z ' can be used to specify multiple values, such as "0,30" or "1,3,5".

Any blank lines and lines that begin with ' # ' will be ignored as comments.

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

To illustrate:

# per minute

* * * * *

# 5th minutes after every hour

5 * * * *

)


Based on development needs, suppose we need to rebuild every one hours. Select Build periodically and fill in the Schedule with 0 * * * *.

The first parameter represents the minute minute, the value 0~59;

The second parameter represents the hour hour, the value 0~23;

The third parameter represents the day, value 1~31;

The fourth parameter represents the month, the value 1~12;

The last parameter represents the week week, and the value 0~7,0 and 7 are all represented in Sunday.

So 0 * * * * represents the first 0 minutes of each hour to perform a build.


Five * Identify the number of minutes per month what is the month and month of the week

Cases:

H/15 * * * * every 15 minutes

H (0-29)/10 * * * * 0-29 minutes per hour every 15 minutes

H 2-19/2 * * 1-5 weekly 1 to Friday (weekdays) 2 to 19 points per 2 hours of execution

H H 1,15 1-11 * January-November, 1th and 15th, each executed once

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.