I'm trying to implement cruisecontrol.net with our ClearCase source control. There are specific times when the ClearCase repository is not available. (Scheduled backup times). Is there a way to tell cruisecontrol.net not to process during those blackout times?
The simplest way would be, for each CCNet Build loop to set a variable depending on the availability of ClearCase at the CC Server side.
One of the way of ensuring proper backup for ClearCase is to stop the albd (Atria Location Broker Service).
That triggers very fast error message as soon as you are stopping that daemon, for all sort of ClearCase commands, like a cleartool lsview myView
.
I don't have a specific CCNet way of doing that, but at least you have a clear way of determining if ClearCase is stopped or not for backups.
If you know the times when ClearCase is unavailable, the cron trigger should do the trick. You can combine it with another trigger using a multi-trigger clause with the And
parameter.
I solved this by using a multi-trigger that contained a "Filter trigger" and an "interval trigger" together. The filter trigger was used to define the blackout periods and the interval trigger was used in conjunction with source control to determine if a build was needed.