Re: 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]>
Thanks....

On Wed, Feb 18, 2009 at 11:07 PM, Jeffrey Fredrick <
[email protected]> wrote:

> > 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.
>
> You don't need to know how long each test will take. Assuming you
> haven't specified multiple build threads CC will maintain a queue with
> only one project pending at a time, so just specify them each 1 minute
> apart:
>
>             <ant buildfile="cc-build.xml" target="runtest1" time="2300"/>
> ...
>             <ant buildfile="cc-build.xml" target="runtest2" time="2301"/>
> ...
>             <ant buildfile="cc-build.xml" target="runtest3" time="2302"/>
>
> And it should behave as you describe.
>
> Jtf
>
> --
>  Free hour of CI consulting: http://the.ci-guys.com
>
>
>
> On Wed, Feb 18, 2009 at 12:31 AM, Prasanna Kulkarni
> <[email protected]> wrote:
> > 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
>



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