Re: Use of <buildstatus> within Cruise Control

David Peter Bradly <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <0F933620C468E644A2E0ED4FCF0926185C56B1B5@NL0230MBX10N1.DIR.slb.com>
Thanks Julian, that has made things a lot clearer.

>From what you are saying I need the following:

<project name="Project-B" requireModification="true">
    <modificationset>
      <buildstatus logdir="logs/Project-A" vetoIfFailing="true"/>
    </modificationset>
    <schedule interval="3600">
      <exec ..."/>
    </schedule>
</project>
I will try this and see...

David Bradly

From: Julian Simpson [mailto:[email protected]]
Sent: Wednesday, July 13, 2011 7:10 PM
To: [email protected]
Subject: Re: [Cruisecontrol-user] Use of <buildstatus> within Cruise Control

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]<mailto:[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]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user



--
Julian Simpson
The Build Doctor Ltd.
http://www.build-doctor.com
[email protected]<mailto:[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
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.