You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Savitha Rajiv <sa...@yahoo.com> on 2005/06/02 09:51:47 UTC
Re: How to send build status in email...
Hi,
I was wondering if someone could help me with a couple of issues.
I can't figure out a way to schedule builds once a month, or for that matter, to vary the build intervals.
Also, my nightly-build goal defined in maven.xml is not building the JAR file or cleaning up the target directory. Here is my maven.xml. Any pointers will be greatly appreciated! Thanks!
<project default="nightly-build"
xmlns:j="jelly:core"
xmlns:u="jelly:util"
xmlns:maven="jelly:maven"
xmlns:ant="jelly:ant">
<preGoal name="nightly-build">
<tstamp>
<format property="build.date" pattern="yyyy.MM.dd/hh.mm.ss"/>
<echo>BUILD DATE IS</echo>
<echo>"${build.date}"</echo>
</tstamp>
<j:set var="maven.build.dir" value="${basedir}/target/${build.date}"/>
<j:set var="maven.scm.method" value="cvs"/>
<j:set var="maven.scm.cvs.module" value="Root"/>
</preGoal>
<goal name="nightly-build"
description="Nightly Build WizioTec">
<echo>nightly-build</echo>
<!--Any ant task, or jelly tags can go here -->
value="multiproject:goal,multiproject:clean,clean,clean-site,multiproject:site,site:deploy"
/>
<j:set var="goals" value="update-project,compile,test,jar,send-report,site:generate"/>
<mkdir dir="${maven.build.dir}/${build.date}" />
<u:tokenize var="goals" delim=",">${goals}</u:tokenize>
<j:forEach items="${goals}" var="goal" indexVar="goalNumber">
Now attaining goal number ${goalNumber}, which is ${goal}
<attainGoal name="${goal}" />
</j:forEach>
</goal>
<goal name="send-report">
<echo>SENDING REPORTS VIA EMAIL</echo>
<mail subject="Build Status on Mercury"
mailhost="mail.wiziotec.com" mailport="25"
encoding="plain">
<from address="savitha@wiziotec.com" name="Nightly Build"/>
<to address="savitha@wiziotec.com" name="Savitha Rajiv" />
<message src="buildresults.log" />
<fileset dir="c:\savitha\workspace\root">
<include name="buildresults.log" />
</fileset>
</mail>
</goal>
<goal name="compile">
<echo>compile</echo>
</goal>
<goal name="test">
<echo>test</echo>
</goal>
<goal name="jar">
<echo>BUILDING JARS NOW</echo>
</goal>
<goal name="update-project">
<echo>Updating sources</echo>
</goal>
</project>
---------------------------------
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
Re: How to send build status in email...
Posted by Eric Pugh <ep...@upstate.com>.
Use CruiseControl
http://cruisecontrol.sf.net
- Eric
On Jun 2, 2005, at 4:03 AM, dan tran wrote:
> To schedule a job, use cron on unix or cron with cygwin on windows, or
> windows' scheduletask.
>
> Regarding troubleshooting your goal, perhaps you should scale it down
> and debug from there, use maven's -X option would also helps.
>
> -D
>
> On 6/2/05, Savitha Rajiv <sa...@yahoo.com> wrote:
>> Hi,
>>
>> I was wondering if someone could help me with a couple of issues.
>>
>> I can't figure out a way to schedule builds once a month, or for that
>> matter, to vary the build intervals.
>>
>> Also, my nightly-build goal defined in maven.xml is not building the
>> JAR file or cleaning up the target directory. Here is my maven.xml.
>> Any pointers will be greatly appreciated! Thanks!
>>
>>
>> <project default="nightly-build"
>>
>> xmlns:j="jelly:core"
>>
>> xmlns:u="jelly:util"
>>
>> xmlns:maven="jelly:maven"
>>
>> xmlns:ant="jelly:ant">
>>
>>
>>
>> <preGoal name="nightly-build">
>>
>> <tstamp>
>>
>> <format property="build.date" pattern="yyyy.MM.dd/hh.mm.ss"/>
>>
>> <echo>BUILD DATE IS</echo>
>>
>> <echo>"${build.date}"</echo>
>>
>> </tstamp>
>>
>> <j:set var="maven.build.dir" value="${basedir}/target/${build.date}"/>
>>
>> <j:set var="maven.scm.method" value="cvs"/>
>>
>> <j:set var="maven.scm.cvs.module" value="Root"/>
>>
>> </preGoal>
>>
>> <goal name="nightly-build"
>>
>> description="Nightly Build WizioTec">
>>
>> <echo>nightly-build</echo>
>>
>>
>>
>> <!--Any ant task, or jelly tags can go here -->
>>
>>
>>
>> value="multiproject:goal,multiproject:clean,clean,clean-
>> site,multiproject:site,site:deploy"
>>
>> />
>>
>> <j:set var="goals"
>> value="update-project,compile,test,jar,send-report,site:generate"/>
>>
>> <mkdir dir="${maven.build.dir}/${build.date}" />
>>
>>
>>
>> <u:tokenize var="goals" delim=",">${goals}</u:tokenize>
>>
>> <j:forEach items="${goals}" var="goal" indexVar="goalNumber">
>>
>>
>>
>> Now attaining goal number ${goalNumber}, which is ${goal}
>>
>> <attainGoal name="${goal}" />
>>
>> </j:forEach>
>>
>> </goal>
>>
>> <goal name="send-report">
>>
>> <echo>SENDING REPORTS VIA EMAIL</echo>
>>
>> <mail subject="Build Status on Mercury"
>>
>> mailhost="mail.wiziotec.com" mailport="25"
>>
>> encoding="plain">
>>
>> <from address="savitha@wiziotec.com" name="Nightly Build"/>
>>
>> <to address="savitha@wiziotec.com" name="Savitha Rajiv" />
>>
>> <message src="buildresults.log" />
>>
>> <fileset dir="c:\savitha\workspace\root">
>>
>> <include name="buildresults.log" />
>>
>> </fileset>
>>
>> </mail>
>>
>> </goal>
>>
>> <goal name="compile">
>>
>> <echo>compile</echo>
>>
>> </goal>
>>
>> <goal name="test">
>>
>> <echo>test</echo>
>>
>> </goal>
>>
>> <goal name="jar">
>>
>> <echo>BUILDING JARS NOW</echo>
>>
>> </goal>
>>
>> <goal name="update-project">
>>
>> <echo>Updating sources</echo>
>>
>> </goal>
>>
>> </project>
>>
>>
>>
>>
>>
>> ---------------------------------
>> Yahoo! Mail Mobile
>> Take Yahoo! Mail with you! Check email on your mobile phone.
>>
>
> ---------------------------------------------------------------------
> 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
Re: How to send build status in email...
Posted by dan tran <da...@gmail.com>.
To schedule a job, use cron on unix or cron with cygwin on windows, or
windows' scheduletask.
Regarding troubleshooting your goal, perhaps you should scale it down
and debug from there, use maven's -X option would also helps.
-D
On 6/2/05, Savitha Rajiv <sa...@yahoo.com> wrote:
> Hi,
>
> I was wondering if someone could help me with a couple of issues.
>
> I can't figure out a way to schedule builds once a month, or for that matter, to vary the build intervals.
>
> Also, my nightly-build goal defined in maven.xml is not building the JAR file or cleaning up the target directory. Here is my maven.xml. Any pointers will be greatly appreciated! Thanks!
>
>
> <project default="nightly-build"
>
> xmlns:j="jelly:core"
>
> xmlns:u="jelly:util"
>
> xmlns:maven="jelly:maven"
>
> xmlns:ant="jelly:ant">
>
>
>
> <preGoal name="nightly-build">
>
> <tstamp>
>
> <format property="build.date" pattern="yyyy.MM.dd/hh.mm.ss"/>
>
> <echo>BUILD DATE IS</echo>
>
> <echo>"${build.date}"</echo>
>
> </tstamp>
>
> <j:set var="maven.build.dir" value="${basedir}/target/${build.date}"/>
>
> <j:set var="maven.scm.method" value="cvs"/>
>
> <j:set var="maven.scm.cvs.module" value="Root"/>
>
> </preGoal>
>
> <goal name="nightly-build"
>
> description="Nightly Build WizioTec">
>
> <echo>nightly-build</echo>
>
>
>
> <!--Any ant task, or jelly tags can go here -->
>
>
>
> value="multiproject:goal,multiproject:clean,clean,clean-site,multiproject:site,site:deploy"
>
> />
>
> <j:set var="goals" value="update-project,compile,test,jar,send-report,site:generate"/>
>
> <mkdir dir="${maven.build.dir}/${build.date}" />
>
>
>
> <u:tokenize var="goals" delim=",">${goals}</u:tokenize>
>
> <j:forEach items="${goals}" var="goal" indexVar="goalNumber">
>
>
>
> Now attaining goal number ${goalNumber}, which is ${goal}
>
> <attainGoal name="${goal}" />
>
> </j:forEach>
>
> </goal>
>
> <goal name="send-report">
>
> <echo>SENDING REPORTS VIA EMAIL</echo>
>
> <mail subject="Build Status on Mercury"
>
> mailhost="mail.wiziotec.com" mailport="25"
>
> encoding="plain">
>
> <from address="savitha@wiziotec.com" name="Nightly Build"/>
>
> <to address="savitha@wiziotec.com" name="Savitha Rajiv" />
>
> <message src="buildresults.log" />
>
> <fileset dir="c:\savitha\workspace\root">
>
> <include name="buildresults.log" />
>
> </fileset>
>
> </mail>
>
> </goal>
>
> <goal name="compile">
>
> <echo>compile</echo>
>
> </goal>
>
> <goal name="test">
>
> <echo>test</echo>
>
> </goal>
>
> <goal name="jar">
>
> <echo>BUILDING JARS NOW</echo>
>
> </goal>
>
> <goal name="update-project">
>
> <echo>Updating sources</echo>
>
> </goal>
>
> </project>
>
>
>
>
>
> ---------------------------------
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org