You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicolas FRANK <nf...@financeactive.com> on 2005/11/21 17:34:14 UTC
RE : Automate the build.
Cruise control is written in java... So it can run out of the box on linux !
I run it on read heat with no problem.
You can download it at :
http://sourceforge.net/project/showfiles.php?group_id=23523&package_id=16338&
release_id=352130
You the have to configure cruisecontrol.xml to use a maven build. Here is an
example :
<?xml version="1.0" encoding="UTF-8"?>
<!--
=============================================================================
========= -->
<!-- script d'ic pour les projets ppp
-->
<!-- fonctionne avec CruiseControl 2.3.1
-->
<!-- ATTENTION : fichier en UTF-8, ne pas mettre d'accent
-->
<!--
=============================================================================
========= --> <cruisecontrol>
<!-- repertoire ou sont places les checkouts et les elements de build de
cruisecontrol -->
<property name="target.dir" value="..."/>
<!-- repertoire du bin de maven -->
<property name="maven.bin" value="/usr/local/maven/maven-1.0/bin"/>
<!-- url du site web de resultat-->
<property name="buildresultsurl" value="http://xxx:8080/cruisecontrol"/>
<system>
<configuration>
<!-- nombre de projets pouvant etre construits simultanement-->
<threads count="1"/>
</configuration>
</system>
<!-- projet ppp - en cas d'echec de la construction, ne recommence a
construire que si un commit a lieu -->
<project name="ppp" buildafterfailed="false">
<bootstrappers>
<currentbuildstatusbootstrapper
file="${target.dir}/cc-logs/currentbuildstatus.txt">
</currentbuildstatusbootstrapper>
</bootstrappers>
<modificationset quietperiod="90">
<cvs localWorkingCopy="${target.dir}/checkouts/ppp">
</cvs>
</modificationset>
<schedule interval="120">
<maven goal="scm:update-project|clean-all install"
projectfile="${target.dir}/checkouts/ppp/project.xml"
mavenscript="${maven.bin}/maven">
</maven>
<pause starttime="2300" endtime="0830"/>
</schedule>
<log dir="${target.dir}/cc-logs/ppp" encoding="ISO-8859-1">
<merge dir="${target.dir}/checkouts/ppp/target/test-reports"/>
</log>
<publishers>
<currentbuildstatuspublisher
file="${target.dir}/cc-logs/currentbuildstatus.txt">
</currentbuildstatuspublisher>
<htmlemail reportsuccess="always" mailhost="0.0.0.0"
subjectprefix="[BUILD]" defaultsuffix="@xxx.com"
logdir="${target.dir}/cc-logs/ppp"
skipusers="false" returnaddress="developpeur@xxx.com"
buildresultsurl="${buildresultsurl}">
<map address="xxx@xxx.com" alias="xxx">
</map>
<!-- failures -->
<failure address="xxx@financeactive.com" reportWhenFixed="true">
</failure>
</htmlemail>
<artifactspublisher
dir="${target.dir}/checkouts/ppp/target/test-reports"
dest="${target.dir}/cc-logs/ppp/artifacts"/>
</publishers>
</project>
....
Hope it can help....
-----Message d'origine-----
De : Emmanuel Venisse [mailto:emmanuel@venisse.net]
Envoyé : lundi 21 novembre 2005 17:16
À : Maven Users List
Objet : Re: Automate the build.
You can try continuum : http://maven.apache.org/continuum/
Emmanuel
Charles Anto a écrit :
> how to set time in maven.xml to run the build in every day night 12
> AM. we are runing maven in ret hat linux 9. crontab does not run maven
> script, so i tried cruise controller, but i couldn't find linux
> version, seems to be not supporting linux, is it true?
>
> pls help me, how to do nightly build.
>
>
> Thanks
> charles
>
> _________________________________________________________________
> Vroom, Vrooooom! Get ready for the real speed. Drive the machine of
> your choice
>
http://www.sulekha.com/classifieds/cllist.aspx?catid=280&nma=IN&c=Autos&ref=m
sn&ref2=atx10
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org