Re: Build for each commit to svn

Niklas Nylund <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hi Mark, Paul and others,

Thank your comments. It took me some time before I got time to try out  
cruisecontrol
but now I got a simple setup that seems to work. But I can't still  
seem to figure out
how to set it up so it runs a build&tests for each commit to svn,

If I setup a workflow with modificationset with svn and a schedule  
with say an interval of 300 (5min),
this will mean that I "svn up" + build script is run every five  
minutes or so? I.e. svn will update
to the current version and it there has been several commits it will  
update to the latest. How
would I change this workflow so that the build script is run for each  
commit not only the newest
version that happens to exist when the <schedule> timer kicks of a  
build?

Thank you
Niklas Nylund

On 12 aug 2009, at 22.16, Mark Thias wrote:

> Hi Paul,
>
> CC will execute only one project build at a time so if your project is
> building and someone subsequently commits, that change will not be
> incorporated until the next CC build cycle.  Another important concept
> that might be interesting to you given the context of your question is
> the "quiet period".  This is the time that CC waits after detecting an
> SVN change before launching the build.  In other words, no SVN changes
> for N time before launching.  This gives the developer time to commit
> all the necessary files before the build begins.
>
> Good luck with your integration efforts.
>
> Mark
>
> On Wed, Aug 12, 2009 at 1:55 PM, Niklas Nylund<[email protected]>  
> wrote:
>>
>> On 12 aug 2009, at 19.26, Paul Grenyer wrote:
>>
>>> Hi
>>>
>>>> I am looking for a system that I could setup to do a build for each
>>>> commit to a SVN server, is there a way to do this with  
>>>> CruiseControl?
>>>> I've been reading through the documentation and if I haven't
>>>> misunderstood something this isn't possible. The <schedule> element
>>>> seems only to support a periodic trigger that whenever it happens
>>>> updates to the latest svn version and then does the build. Is this
>>>> correct? What happens if the schedule interval is so short that a  
>>>> new
>>>> commit is made while a build is being made?
>>>
>>> It is trivial to setup CruiseControl to trigger on an SVN checkin.
>>>
>>
>> What about my other questions, what happens if another commit
>> is done while CruiseControl has launched a build & test cycle for
>> the previous commit?
>>
>> Niklas
>>
>>
>>> --
>>> Thanks
>>> Paul
>>>
>>> Paul Grenyer
>>> e: [email protected]
>>> w: http://www.marauder-consulting.co.uk
>>> b: paulgrenyer.blogspot.com
>>>
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>> 30-Day
>>> trial. Simplify your report design, integration and deployment - and
>>> focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> Cruisecontrol-user mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports  
>> 2008 30-Day
>> trial. Simplify your report design, integration and deployment -  
>> and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Cruisecontrol-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
> 30-Day
> trial. Simplify your report design, integration and deployment - and  
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.