发现一个很好的邮件通知模板,根据我的需求定制了一些。分享一下。

Default Subject:

构建通知:${BUILD_STATUS} - ${PROJECT_NAME} - Build # ${BUILD_NUMBER} !

Default Content:

${ENV, var="JOB_NAME"}-第${BUILD_NUMBER}次构建日志
    
        
            (本邮件是程序自动下发的,请勿回复!)
        
        
            

                    构建结果 - ${BUILD_STATUS}                 

                                           构建信息                                                             
                        
  • 项目名称 : ${PROJECT_NAME}
  •                     
  • 构建编号 : 第${BUILD_NUMBER}次构建
  •                     
  • SVN 版本: ${SVN_REVISION}
  •                     
  • 触发原因: ${CAUSE}
  •                     
  • 构建日志: ${BUILD_URL}console
  •                     
  • 构建  Url : ${BUILD_URL}
  •                     
  • 工作目录 : ${PROJECT_URL}ws
  •                     
  • 项目  Url : ${PROJECT_URL}
  •                 
                                           Changes Since Last                         Successful Build:                                                             
                        
  • 历史变更记录 : ${PROJECT_URL}changes
  •                 
 ${CHANGES_SINCE_LAST_SUCCESS,reverse=true, format="Changes for Build #%n:%c",showPaths=true,changesFormat="
[%a]%m
",pathFormat="    %p"}                                           Failed Test Results                                            $FAILED_TESTS
                                               构建日志 (最后 100行):                                                     ${BUILD_LOG, maxLines=100}                           

来源:http://scmbob.org/mail_template_of_email-ext_plugin.html

转:http://www.cnblogs.com/zz0412/p/jenkins_jj_02.html 点击打开链接