Re: Use of <buildstatus> within Cruise Control
Julian Simpson <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <CANwBkz9dEGuTOFC4svu3KOc+6y5nw3rYVeO6dVVHQ5kd0g9imQ@mail.gmail.com> |
Hi, It works like this: - Project 'A' builds. - CC publishes logs. - Those logs become the changes that trigger Project 'B'. Now, don't go thinking that you'll have a 1:1 correlation between 'A' and 'B': if A builds 5 times during a previous run of B, you'll see 5 modifications that trigger B. The schedule element should not trigger a build, it should just check every hour (if you have requireModifications set to false, it would build every time it polls. http://cruisecontrol.sourceforge.net/main/configxml.html#schedule You can use the 'vetoIfFailing' attribute on buildstatus to stop it building if A fails. http://cruisecontrol.sourceforge.net/main/configxml.html#buildstatus HTH, J. On 13 July 2011 12:19, David Peter Bradly <[email protected]> wrote: > I am struggling to understand the basic concept of getting one project to > fire off after the successful completion of another.**** > > ** ** > > I am firing off a project on a daily basis using <schedule> <composite > time=”0101> …**** > > ** ** > > What I want is for a second project to start if and only if this project > completes successfully.**** > > ** ** > > I have tried **** > > ** ** > > <modificationset>**** > > <buildstatus logdir="logs/Project A"/>**** > > </modificationset>**** > > ** ** > > <schedule interval="3600">**** > > <exec …"/>**** > > </schedule>**** > > ** ** > > But this fires off once an hour and it looks as if I remove the > interval=3600, it will fire off with the default interval of 5 minutes! And > it seems to fire off if Project A has failed as well.**** > > ** ** > > I have read the Wiki page on Dependent Builds, but this does not really > help.**** > > ** ** > > I have also seen some posts about <log> but cannot see what extra I have to > do.**** > > ** ** > > All I want is for Project B to fire off when and only when Project A has > completed successfully (on a daily basis).**** > > ** ** > > How do I do this?**** > > ** ** > > David Bradly**** > > ** ** > > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Cruisecontrol-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user > > -- Julian Simpson The Build Doctor Ltd. http://www.build-doctor.com [email protected] (+44) 207 183 0323 ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Cruisecontrol-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user