« Return to Thread: test

Re: Start a build twice day on a fixed time.

by Jeffrey Fredrick-2 :: Rate this Message:

Reply to Author | View in Thread

> And this solution and I am going to try it today. I am still waiting to see
> if it will work.

That should work.  I it is just what I was going to suggest.

Not critical, but if you wanted to remove duplication between the two
ant builder entries you could have a preconfigured builder where you
just add the times.  Something like:

<plugin name="cleanbuild"
  classname="net.sourceforge.cruisecontrol.builders.AntBuilder"
  buildfile="${CruiseControl.dir}\wrapper.xml" target="cleanbuild">
  <property name="build.target" value="build_all_dev" />
</plugin>

Then your modification set could be:

<schedule>
  <cleanbuild time="1200"/>
  <cleanbuild time="1800"/>
</schedule>


Jtf

--
http://ci-guys.com
http://blog.jeffreyfredrick.com


On Thu, Dec 4, 2008 at 8:59 AM, Bassem Srouji
<Bassem.Srouji@...> wrote:

> Hi,
>
>
>
> I have the following project in cruise control which end up to be a
> dailybuild at 18:00 only if something changed in the repository. Now, I want
> to make it to build twice a day once at launchtime 12:00 and once at 18:00.
> Keeping the restriction that I need at least one modification.
>
>
>
>    <project name="Main-DailyBuild-All" requireModification="true">
>
>       <P4labelincrementer port="${p4.port}" client="${p4.client}"
> user="${p4.user}" passwd="${p4.passwd}" view="${p4.view.scripts}"
> noSync="true"/>
>
>       <modificationset ignoreFiles="vp_changelist.h">
>
>          <p4 port="${p4.port}" client="${p4.client}" user="${p4.user}"
> passwd="${p4.passwd}" view="${p4.view.code}" />
>
>       </modificationset>
>
>       <schedule>
>
>          <ant buildfile="${CruiseControl.dir}\wrapper.xml"
> target="cleanbuild" time="1800">
>
>             <property name="build.target" value="build_all_dev"/>
>
>          </ant>
>
>       </schedule>
>
>    </project>
>
>
>
>
>
> There's this solution that I came with, but it doesn't work
>
>       <modificationset ignoreFiles="vp_changelist.h">
>
>          <p4 port="${p4.port}" client="${p4.client}" user="${p4.user}"
> passwd="${p4.passwd}" view="${p4.view.code}" />
>
>    <timebuild username="bldadmin" time="1200"/>
>
>    <timebuild username="bldadmin" time="1800"/>
>
>       </modificationset>
>
>
>
> And this solution and I am going to try it today. I am still waiting to see
> if it will work.
>
> <modificationset>
>
>    <p4 port="${p4.port}" client="${p4.client}" user="${p4.user}"
> passwd="${p4.passwd}" view="${p4.view.code}" />
>
> </modificationset>
>
>    <schedule>
>
>    <composite>
>
>       <ant buildfile="${CruiseControl.dir}\wrapper.xml" target="cleanbuild"
> time="1200">
>
>          <property name="build.target" value="build_all_dev" />
>
>       </ant>
>
>       <ant buildfile="${CruiseControl.dir}\wrapper.xml" target="cleanbuild"
> time="1800">
>
>          <property name="build.target" value="build_all_dev" />
>
>       </ant>
>
>    </composite>
>
> </schedule>
>
>
>
> Any suggestion will be appreciated
>

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

 « Return to Thread: test