This page last changed on Mar 17, 2006 by richardjfoster.

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
Document generated by Confluence on Dec 13, 2008 00:16