Dashboard > CruiseControl.NET > ... > Trigger Blocks > Multiple Trigger
Multiple Trigger Log In View a printable version of the current page.  
CruiseControl.NET documentation for latest CI builds
Added by Owen Rogers , last edited by Richard J Foster on Mar 17, 2006  (view change)

The Multiple Trigger is used to support the execution of multiple nested triggers. Each trigger will be executed sequentially in the order specified in the configuration file. By default, if any of the triggers specify that a build should occur then a build will be triggered. The build condition will be ForceBuild if any trigger returns a ForceBuild condition. Otherwise, the build condition will be IfModificationsExist if any trigger returns that condition. Multiple Triggers can contain nested multiple triggers.

It is possible to change the logical operator applied to assessing the build conditions. If the Multiple Trigger's operator property is set to "And" then if any trigger says that a build should not happen, then the build will not happen. This is particularly useful when using multiple Filter Triggers.

Examples

NOTE: Like all triggers, the multiTrigger must be enclosed within a triggers element in the appropriate Project Configuration Block

Minimalist example:

<multiTrigger />

Full example:

<multiTrigger operator="And">
        <triggers>
            <intervalTrigger />
            <filteredTrigger startTime="23:30" endTime="23:45" />
        </triggers>
    </multiTrigger>

Configuration Elements:

Node Description Type Required Default
operator The logical operator to apply to the results of the nested triggers (And or Or). (Added in CCNet 1.1) string false Or
triggers A collection of nested trigger blocks Trigger Blocks false n/a

Powered by a free Atlassian Confluence Open Source Project / Non-profit License granted to ThoughtWorks, Inc.. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators