Donovan Bray
2008-Nov-12 21:32 UTC
[Cruisecontrolrb-users] Does anybody have an example of setting up a timed build?
I have several build tasks I would like to go off at certain times instead of a polling cycle. In each project I want this behavior i''ve added: project.triggered_by = [] #manual build only I''ve been attempting to use cron to schedule a command line build; however the build lock files get in the way when the web interface is running. I don''t want to have to stop the web interface in order to be able to have the builds run at specific times. Just erasing the builder.lock; doesn''t seem to be doing the trick. 0 */4,11,13 * * * cruise rm /home/cruise/.cruise/projects/StagingTrunk/builder.lock; /usr/local/cruisecontrol/cruise build StagingTrunk What''s the best solution?
Matt Wynne
2008-Nov-12 22:00 UTC
[Cruisecontrolrb-users] Does anybody have an example of setting up a timed build?
On 12 Nov 2008, at 21:32, Donovan Bray wrote:> I have several build tasks I would like to go off at certain times > instead of a polling cycle. > > In each project I want this behavior i''ve added: > > project.triggered_by = [] #manual build only > > I''ve been attempting to use cron to schedule a command line build; > however the build lock files get in the way when the web interface is > running. I don''t want to have to stop the web interface in order to > be able to have the builds run at specific times. > > Just erasing the builder.lock; doesn''t seem to be doing the trick. > > 0 */4,11,13 * * * cruise rm > /home/cruise/.cruise/projects/StagingTrunk/builder.lock; > /usr/local/cruisecontrol/cruise build StagingTrunk > > What''s the best solution?I don''t know if this qualifies as the best solution, but you might be able to do something like curl -d "" http://your-server/projects/build/the-project-to-build This looks to be what the ''Build Now'' button does. cheers, Matt
Donovan Bray
2008-Nov-12 23:29 UTC
[Cruisecontrolrb-users] Does anybody have an example of setting up a timed build?
That worked beautifully, thank you. So simple too. On Wed, Nov 12, 2008 at 2:00 PM, Matt Wynne <matt at mattwynne.net> wrote:> On 12 Nov 2008, at 21:32, Donovan Bray wrote: >> >> I have several build tasks I would like to go off at certain times >> instead of a polling cycle. >> >> In each project I want this behavior i''ve added: >> >> project.triggered_by = [] #manual build only >> >> I''ve been attempting to use cron to schedule a command line build; >> however the build lock files get in the way when the web interface is >> running. I don''t want to have to stop the web interface in order to >> be able to have the builds run at specific times. >> >> Just erasing the builder.lock; doesn''t seem to be doing the trick. >> >> 0 */4,11,13 * * * cruise rm >> /home/cruise/.cruise/projects/StagingTrunk/builder.lock; >> /usr/local/cruisecontrol/cruise build StagingTrunk >> >> What''s the best solution? > > I don''t know if this qualifies as the best solution, but you might be able > to do something like > > curl -d "" http://your-server/projects/build/the-project-to-build > > This looks to be what the ''Build Now'' button does. > > cheers, > Matt > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >