Dashboard > CruiseControl.NET > ... > Trigger Blocks > Schedule Trigger
Schedule Trigger Log In | Sign Up   View a printable version of the current page.  
CruiseControl.NET documentation for latest CI builds
Added by Owen Rogers , last edited by Ruben Willems on Apr 27, 2009  (view change)

The Schedule Trigger is used to specify that an integration should be run at a certain time on certain days. By default, an integration will only be triggered if modifications have been detected since the last integration. The trigger can be configured to force a build even if have occurred to source control. The items to watch for modifications are specified with Source Control Blocks.

Example

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


<scheduleTrigger time="23:30" buildCondition="ForceBuild" name="Scheduled">
    <weekDays>
        <weekDay>Monday</weekDay>
    </weekDays>
</scheduleTrigger>


Configuration Elements:

Node Description Type Required Default
time The time of day that the build should run at. The time should be specified in a locale-specific format (ie. H:mm am/pm is acceptable for US locales.) string true n/a
weekDays The week days on which the build should be run (eg. Monday, Tuesday). By default, all days of the week are set. elements false Monday-Sunday
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. The items to watch for modifications are specified with Source Control Blocks. string false IfModificationExists
name The name of the trigger. This name is passed to external tools as a means to identify the trigger that requested the build. (Added in CCNet 1.1) string false ScheduleTrigger
randomOffSetInMinutesFromTime
adds a random amount of number between 0 and set value to the time. This is mainly meant for spreading the load of actions to a central server.
int false
0

NOTE: this class replaces the PollingScheduleTrigger and the ForceBuildScheduleTrigger. Use the buildCondition property if you want to run a scheduled forced build.

Powered by a free Atlassian Confluence Open Source Project 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