Setting up email notifications on cruise control

牧云@^-^@ 提交于 2019-12-13 05:15:55

问题


I've just started using cruisecontrol and have setup all the neccessary dependencies like jdk and now i'm running the example project under Projects in the cruisecontrol folder, i would like to sent out emails to myself everytime it runs but when i read through the documentation it tells me that i should configure the emails under the config.xml file which i did like

<property name="buildmaster.email"  value="email@example.co.za"/>
  <property name="buildmaster.name"  value="Donald Mailula Testing"/>

outsite the project attribute, i would like to know if i'm required to add additional configurations or not if so please help me with get to the right direction. and i have tried several times to changes my intervals under the xml files to shorten the time which it runs but it doesnt change but runs after every 5 min. I'm using CC 2.8.4 and still checking out how it works before i implement it on the server.

Thank you in advance.

NB: I've neva used any integration tool before.

D~

This is how my config file looks like at the moment.

 <publishers>
   <email returnaddress="email@gmail.com"
       mailhost="smtp.gmail.com" 
       password="secretpassword"
       username="email@gmail.com"

               <always address="dmailula@example.com"/>
    </email>
</publishers>

What am I doing wrong?


回答1:


You have to set up the mail notifications like ,

< publishers>

< email from="fromaddress" mailhost="host address"
         mailhostPassword="password" mailhostUsername="username" 
         includeDetails="true">

     <users>
         <user name="name" address="to address"
             group="NotifyGroup" />
     </users>
     <groups>
         <group name="NotifyGroup" notification="failed" />
     </groups>
< /email>
</publishers>

Refernce: http://www.stevetrefethen.com/blog/ConfiguringemailnotificationsforCruiseControlNET.aspx



来源:https://stackoverflow.com/questions/5869468/setting-up-email-notifications-on-cruise-control

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!