Re: Sending an e-mail on errors.

"Ron Rader" <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <C88FF64CFD06EE4B91C5B89CD48379FE23B969@dellserver.cipheroptics.com>
> Would someone who has e-mail notification working be willing to send

> me their config.xml file?

 

  Try this on for size.  Retained build results email & weblog oriented
directives:

 

<cruisecontrol>

      <property name="CHANGE.ME" value="main.build"/>

      <property name="CHANGE.ME.FOR.WEBLOG" value="main_build"/>

 

      <property name="property.file.name"
value="/storage/cc_views/${CHANGE.ME}/development/build.prop" />

      <property file="${property.file.name}"/>

 

      <plugin name="execbootstrapper"/>

 

      <plugin name="weblog"

 
classname="net.sourceforge.cruisecontrol.publishers.WeblogPublisher"/>

      

      <project name="${CHANGE.ME}" buildafterfailed="false"
requireModification="true" forceOnly="false">

            <property name="logs.dir"
value="${cruisecontrol.logs.dir}/${project.name}" />

            <property name="artifacts.dir"
value="${cruisecontrol.artifacts.dir}/${project.name}" />

 

            <publishers>      

                  <!-- Email sent always (reportsuccess/spamwhilebroken
defaults) -->

                  <email      

                        mailhost="mail.domain.com"

                        returnaddress="${buildmeister}"

                        reportsuccess="always"

                        spamwhilebroken="true"

 
buildresultsurl="http://buildserver:8080/buildresults/${project.name}">

                        <propertiesmapper
file="${top.build.dir}/email.prop"/>

                        <always address="[email protected]"/>

                        <always address="[email protected]"/>

                        <failure address="[email protected]"/>

                  </email>

 

                  <!-- Email sent only when the build changes state
(success/fail) -->

                  <email      

                        mailhost="mail.domain.com"

                        returnaddress="${buildmeister}"

                        reportsuccess="fixes"

                        spamwhilebroken="false"

 
buildresultsurl="http://buildserver:8080/buildresults/${project.name}">

                  </email>

 

                  <!-- send encoded email with list of modifications -->

                  <htmlemail  

                        mailhost="mail.domain.com"

                        returnaddress="${buildmeister}"

                        reportsuccess="always"

                        spamwhilebroken="true"

 
buildresultsurl="http://buildserver:8080/buildresults/${project.name}"

                        logdir="${cruisecontrol.logs.dir}/${CHANGE.ME}"

 
xsldir="/opt/cruisecontrol/cruisecontrol-bin-2.7.2/webapps/cruisecontrol
/xsl/"

                        xslfilelist="header.xsl modifications.xsl"

                  >

                        <propertiesmapper
file="${top.build.dir}/email.prop"/>

                        <always address="[email protected]"/>

                        <always address="[email protected]"/>

                        <always address="[email protected]"/>

                  </htmlemail>

 

                  <!-- Build results blog -->

                  <weblog
blogurl="http://blogserver/cgi-bin/Builds-xmlrpc.cgi/RPC2"

                        api="metaweblog"

                        blogid="Builds"

                        username="buildguy"

                        password="xyz123"

                        category="${CHANGE.ME.FOR.WEBLOG}"

                        reportsuccess="always"

                        subjectprefix="[build]"

 
buildresultsurl="http://buildserver:8080/buildresults/${project.name}"

                        logdir="${cruisecontrol.logs.dir}/${CHANGE.ME}"

 
xsldir="/opt/cruisecontrol/cruisecontrol-bin-2.7.2/webapps/cruisecontrol
/xsl/"

 
css="/opt/cruisecontrol/cruisecontrol-bin-2.7.2/webapps/cruisecontrol/cs
s/cruisecontrol.css"

                  />

            </publishers>

      </project>

 

</cruisecontrol>



The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting all copies. Thank you.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
logo.jpg (image/jpeg, 5 KB) - not displayed
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.