Daily integration in. Net Environment (6): cruisecontrol. Net trigger Blocks

Source: Internet
Author: User

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" />

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.