2020-02-10

Groovy pipeline for automatic build trigger

prpeline{
.......

triggers{
cron('H 1,5 * * *')
}


.........
}




CRON expression

A CRON expression is a string comprising five or six fields separated by white space[11] that represents a set of times, normally as a schedule to execute some routine.
Comments begin with a comment mark #, and must be on a line by themselves.
FieldRequiredAllowed valuesAllowed special charactersRemarks
MinutesYes0-59* , -
HoursYes0-23* , -
Day of monthYes1-31* , - ? L W? L W only in some implementations
MonthYes1-12 or JAN-DEC* , -
Day of weekYes0-6 or SUN-SAT* , - ? L #? L # only in some implementations
YearNo1970-2099* , -This field is not supported in standard/default implementations.

No comments:

Post a Comment