Under what circumstances does this configuration run the integration?
Usually you use interval trigger, that is, how long the integration runs, schedule trigger is also frequently used, filter trigger is used to organize integrated operations (for example, you are backing up) under certain circumstances. You can also create an empty node.<Triggers/> can only be executed manually.
There are several types:
- Filter trigger
- Interval trigger
- Multiple trigger
- Project trigger
- Schedule trigger
- URL trigger
1. interval trigger
Execute integration at intervals
< Intervaltrigger Name = "Continuous" Seconds = "30" Buildcondition = "Forcebuild" />
Name: the name of the trigger,
Seconds: The time interval between two integrations
Buildcondition:Ifmodificationexists, run only when the source code has been modified
Forcebuild, run regardless of whether there are any changes
2. Schedule trigger
< Scheduletrigger Time = "23: 30" Buildcondition = "Forcebuild" >
< Weekdays >
< Weekday > Monday </ Weekday >
</ Weekdays >
</ Scheduletrigger >
Time: when to run buildcondition. Weekdays is the same as Monday-Sunday.
3. Filter trigger
Time and type of triggers not executed
< Filtertrigger Starttime = "23: 30" Endtime = "23:45" >
< Trigger Type = "Intervaltrigger" Seconds = "60" />
< Weekdays >
< Weekday > Sunday </ Weekday >
</ Weekdays >
</ Filtertrigger >
4. Multiple trigger
If multiple triggers and operators are and, if one trigger is not executed, integration is not executed. Optional values: and or
< Multitrigger Operator = "And" >
< Triggers >
< Intervaltrigger />
< Filteredtrigger Starttime = "23: 30" Endtime = "23:45" />
</ Triggers >
</ Multitrigger >
5. Project trigger
Integration caused by other projects
< Projecttrigger Serveruri = "TCP: // server: 21234/cruisemanager. Rem" Project = "Server" >
< Triggerstatus > Success </ Triggerstatus >
< Innertrigger Type = "Intervaltrigger" Seconds = "30" Buildcondition = "Forcebuild" />
</ Projecttrigger >
Triggerstatus: conditions that cause integration. Possible values include success, failure, exception and unknown.
6. url trigger
Integration caused by URL File Modification. buildcondition can be set to ifmodificationexists by default.
< Urltrigger URL = "Http: // server/page.html" Seconds = "30" Buildcondition = "Forcebuild" />