Cron Trigger

A crontab expression are a very compact way to express a recurring schedule. A single expression is composed of 5 space-delimited fields :


* A single wildcard (\*), which covers all values for the field. So a \* in days means all days of a month (which varies with month and year). 
* A single value, e.g. 5. Naturally, the set of values that are valid for each field varies. 
* A comma-delimited list of values, e.g. 1,2,3,4. The list can be unordered as in 3,4,2,6,1. 
* A range where the minimum and maximum are separated by a dash, e.g. 1-10. You can also specify these in the wrong order and they will be fixed. So 10-5 will be treated as 5-10. 
* An interval specification using a slash, e.g. \*/4. This means every 4th value of the field. You can also use it in a range, as in 1-6/2. 
* You can also mix all of the above, as in: 1-5,10,12,20-30/5 


Available from version 1.6


1st januari of each year

2  <cronExpression>* * 1 1 *</cronExpression>

12th of every month at 8 am

2  <cronExpression>0 8 12 * *</cronExpression>

Every 5 minutes between 06:00 and 18:00

2  <cronExpression>0/5 6-18 * * *</cronExpression>

Configuration Elements

Element Description Type Required Default Version
buildCondition The condition that should be used to launch the integration. By default, this value is IfModificationExists, meaning that an integration will only be triggered if modifications have been detected. Set this attribute to ForceBuild in order to ensure that a build should be launched regardless of whether new modifications are detected. String - one of:
* NoBuild
* IfModificationExists
* ForceBuild
No IfModificationExists 16
cronExpression The expression in Cron format when to trigger the build see for an example String Yes
name The name of the trigger. This name is passed to external tools as a means to identify the trigger that requested the build. String No ScheduleTrigger 1.6

Automatically Generated

Documentation generated on Monday, 26 May 2014 at 7:18:04 AM