CruiseControl’s Scheduler of Multiple Builders
Ever run into the problem where you must set multiple builders running different inside of CruiseControl’s scheduler block? I recently had to do that for one of the projects I’m integrating, but kept on running into inconsistency in CruiseControl 2.8.2.
My first attempt was this:
<schedule interval="900"> <ant time="1200" anthome="${ANTHOME}" antworkingdir="${my_build.dir}" buildfile="${my_build.file}" target="build.all.then.test" uselogger="true" usedebug="false"/> <ant time="1800" anthome="${ANTHOME}" antworkingdir="${my_build.dir}" buildfile="${my_build.file}" target="build.all" uselogger="true" usedebug="false"/> <ant time="2400" anthome="${ANTHOME}" antworkingdir="${my_build.dir}" buildfile="${my_build.file}" target="build.all" uselogger="true" usedebug="false"/> </schedule>
Which translates to the following build frequency: 6pm and midnight just build using build.all target. Noon build using build.all.then.test target.
It would make sense right? That didn’t work. For some strange reasons, all three time frame, it built using build.all.
So then I modified it, according to CruiseControl’s documentation recommendation, to the following:
<schedule interval="900"> <ant time="1200" anthome="${ANTHOME}" antworkingdir="${my_build.dir}" buildfile="${my_build.file}" target="build.all.then.test" uselogger="true" usedebug="false"/> <ant multiple="1" anthome="${ANTHOME}" antworkingdir="${my_build.dir}" buildfile="${my_build.file}" target="build.all" uselogger="true" usedebug="false"/> </schedule>
Which translates to check for changes and build every 15mins, but for the 12pm build, run the build.all.then.test instead. That did NOT work.. Did you run into a similar problem? What was your solution?
One Response to “CruiseControl’s Scheduler of Multiple Builders”
Leave a Reply
Related Topics:
No related posts.

I have been reading related articles, but was pleasantly surprised that someone is actually putting energy and effort in giving something unique to their readers. This is definitely going to be one of my must read blogs. Keep up the good work.