关于continuum的notification功能

本文详细介绍了如何配置Continuum以实现邮件通知功能,包括plexus.xml文件中的SMTP服务器设置及pom.xml文件中的CI管理器配置。同时指出只有在构建状态发生变化时Continuum才会发送通知。

话说装好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的文档并未提及这点。如此这般的情况,即使你选中‘成功的时候发送(通知)’
,你期望的结果永远不可能出现。给人一种恍然大悟自己被愚弄的感觉。

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值