话说装好james之后(测试成功),我就满怀希望的又把continuum的plexus.xml文件配置改了一把:
<resource>
<name>mail/Session</name>
<type>javax.mail.Session</type>
<properties>
<property>
<name>mail.smtp.host</name>
<value>qtx.cn</value>
</property>
<property>
<name>mail.smtp.port</name>
<value>25</value>
</property>
<!-- account -->
<property>
<name>mail.smtp.auth</name>
<value>true</value>
</property>
<property>
<name>mail.smtp.user</name>
<value>qtx@qtx.cn</value>
</property>
<property>
<name>password</name>
<value>*********</value> <!--- 密码 ->
</property>
<property>
<name>mail.smtp.debug</name>
<value>true</value>
</property>
<!--
<property>
<name>mail.smtp.starttls.enable</name>
<value>true</value>
</property>
<property>
<name>mail.smtp.socketFactory.class</name>
<value>javax.net.ssl.SSLSocketFactory</value>
</property>
-->
</properties>
</resource>
****************************************************分***隔**********************************************
之后配置maven2工程的pom.xml:
<ciManagement>
<system>Continuum</system>
<url>http://localhost:8080/continuum</url>
<notifiers>
<notifier>
<type>mail</type>
<address>tianxiang@qtx.cn</address>
</notifier>
</notifiers>
</ciManagement>
之后执行,执行。。。。。了N把,始终不见有mail notification
-----------------------------------------------------分---------------------------------------------------------------------------
后来在邮件列表里看到这段:
Continuum doesn't send notification messages unless the build state change。
However this is an undocumented behavior, and the web interface very clearly has checkboxes for build outcomes that are not heeded because of this behavior. By that I mean, the build succeeded and I checked "Send on success" and yet no message was sent. So, the UI says one thing and the code does something else.
就是说如果执行时状态没有改变(像我就是source完全没动又接着编译),将不会有通知发送。
但是continuum的文档并未提及这点。如此这般的情况,即使你选中‘成功的时候发送(通知)’
,你期望的结果永远不可能出现。给人一种恍然大悟自己被愚弄的感觉。
本文详细介绍了如何配置Continuum以实现邮件通知功能,包括plexus.xml文件中的SMTP服务器设置及pom.xml文件中的CI管理器配置。同时指出只有在构建状态发生变化时Continuum才会发送通知。
600

被折叠的 条评论
为什么被折叠?



