How to : build a list of projects one after the other?

Prasanna Kulkarni <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hello,

In our config.xml we have some 10 projects like this :

<project name="proj1" buildafterfailed="false" requiremodification="false">
        <........>
        <schedule>
            <ant buildfile="cc-build.xml" target="runtest1"/>
        </schedule>
        <........>
</project>

<project name="proj2" buildafterfailed="false" requiremodification="false">
        <........>
        <schedule>
            <ant buildfile="cc-build.xml" target="runtest2"/>
        </schedule>
        <........>
</project>
.............
.............

Each of these projects calls an ant target written in an ant script file
cc-build.xml.
The cc-build.xml looks like this :

 <target name="runtest1">
        <ant antfile="build.xml" dir="myProj/src" target="runtest1"/>
 </target>

<target name="runtest2">
        <ant antfile="build.xml" dir="myProj/src" target="runtest2"/>
</target>
.............
.............

We want to build all the projects in config.xml (in actuality run all our
unit tests)
one after the other at a certain time of the day on a daily / nightly basis.

We can specify the time for the first test like this :
<schedule>
            <ant buildfile="cc-build.xml" target="runtest1" time="2300"/>
</schedule>
But we don't know how much time this 1st test will need to finish.

What we want is, the 2nd project's build should start immediately after the
1st project's build has finished.
And so on..
And the next project's build should not depend on the success / failure of
the previous build.
It should just start after the previous build is done with, irrespective of
whether it has succeeded / failed.

How should we configure the projects in config.xml to achieve this?

Thanks.
-- 
-[P]-
kaprasanna.blogspot.com

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

_______________________________________________
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.