jenkins timing task

Click Configure to enter the task configuration page:


The page's build trigger, build periodically


The time format entered in the schedule consists of five parts , each part is separated by a space

The meaning of each part and the range of values:


  • Minutes , the value range (0~59): If other values ​​are not set, it means that each set minute will be constructed

For example: 5 * * * * , which means that every hour will be built at the 5th minute

  • Hour , value range (0~23): If other values ​​are not set, it means that every minute of each set hour will be constructed

For example: * 5 * * * , which means that at 5 o'clock every day, every minute within an hour will be constructed once

  • Date , value range (1~31): If other values ​​are not set, it means that the construction will be performed every minute on that day of the month

For example: * * 5 * *, which means that on the 5th of every month, it will be built every minute starting from 0:00



  • Month , value range (1~12): If other values ​​are not set, it means that every month of the year will be constructed once every minute

For example: * * * 5 *, which means that every year in May, the construction will be done every minute starting from 0:00 on the 1st


  • Week , value range (0 ~ 7): If no other value is set, it means that the day of the week will be constructed every minute

For example: * * * * 5, which means build every minute from 0:00 every Friday


Expression of each part

*: represents any reasonable number

ab: Indicates a range, for example: 5-8 * * * * OR * 5-8 * * *. Refer to the meaning above for the specific meaning

ab/c  OR  */c: Indicates that each c is constructed once in a range, for example: 5-10/2 * * * * OR * */3 * * * For the specific expression, please refer to the above meaning

a,b,c: It is constructed once when expressed as a, b, and c, for example: 7,8,9 * * * * OR * * 13,5 * * Refer to the meaning above for the specific meaning of the expression

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324501601&siteId=291194637