在巡航控制上设置电子邮件通知 [英] Setting up email notifications on cruise control
问题描述
我刚刚开始使用cruisecontrol并设置了所有必要的依赖项,例如jdk,现在我在cruisecontrol文件夹中的Projects下运行示例项目,我想在每次运行时向自己发送电子邮件,但是当我运行通读文档,它告诉我,我应该在config.xml文件下配置电子邮件,就像
<属性名称= buildmaster.email value = email@example.co.za />
<属性名称= buildmaster.name值= Donald Mailula Testing />
项目属性外,我想知道是否如果不是,则是否需要添加其他配置,请帮助我朝正确的方向发展。并且我已经尝试过几次以更改xml文件下的时间间隔,以缩短其运行时间,但它没有改变,但是每5分钟运行一次。我正在使用CC 2.8.4,并且在我在服务器上实现它之前仍在检查它的工作原理。
谢谢。
NB:我以前曾使用过任何集成工具。
D〜
<现在这是我的配置文件的样子。
< publishers>
< email returnaddress = email@gmail.com
mailhost = smtp.gmail.com
password = secretpassword
username = email@gmail.com
<总是address = dmailula@example.com />
< / email>
< / publishers>
我在做什么错了?
您必须设置邮件通知,例如
<出版商>
<电子邮件来自= fromaddress mailhost =主机地址
mailhostPassword =密码 mailhostUsername =用户名
includeDetails = true>
< users>
<用户名=名称 address =至地址
group = NotifyGroup />
< / users>
< groups>
< group name = NotifyGroup notification =失败 />
< / groups>
< / email>
< / publishers>
引用: http://www.stevetrefethen.com/blog/ConfiguringemailnotificationsforCruiseControlNET.aspx
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?
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
这篇关于在巡航控制上设置电子邮件通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!