Dashboard > CruiseControl > TimeBuilderCodeSample
TimeBuilderCodeSample Log In View a printable version of the current page.

Added by Robert Watkins , last edited by Robert Watkins on Apr 13, 2004
Labels: 

CC uses the following logic in time builders to decide whether to run the builder or not:

if (isTimeBuilder) {
  boolean didntBuildToday = builderDidntBuildToday(lastBuild, now, buildTime);
  boolean isAfterBuildTime = buildTime<=Util.getTimeFromDate(now);
  boolean isValidDay = builder.isValidDay(now); 
  if (didntBuildToday  && isAfterBuildTime  && isValidDay) {
    return builder;
  }
}

SchedulingExample

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