jenkins发送jemter邮件附件格式配置
作者:互联网
原文:https://www.cnblogs.com/chenchen-tester/p/6930200.html
配置Editable Email Notification
设置发送邮件触发器
进入jenkins系统设置下,编辑邮件配置,如图所示
邮件正文内容如下:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>${PROJECT_NAME}-第${BUILD_NUMBER}次构建日志</title> </head> <body size="4" leftmargin="8" marginwidth="0" topmargin="8" marginheight="4" offset="0"> <table width="95%" cellpadding="0" cellspacing="0" style="font-size: 20pt; font-family: Tahoma, Arial, Helvetica, sans-serif"> <tr> <td>(本邮件是程序自动下发的,请勿回复!)</td> </tr> <tr> <td><h2> <font color="#0000FF">构建状态 - ${BUILD_STATUS}</font> </h2></td> </tr> <tr> <td><br /> <b><font color="#0B610B">构建信息</font></b> <hr size="3" width="100%" align="center" /></td> </tr> <tr> <td> <ul> <li>项目名称 : ${PROJECT_NAME}</li> <li>构建编号 : 第${BUILD_NUMBER}次构建</li> <li>触发原因: ${CAUSE}</li> <li>构建日志: <a href="${BUILD_URL}console">${BUILD_URL}console</a></li> <li >变更集:${JELLY_SCRIPT,template="html"}</a></li> <li>SummaryReport:${FILE, path="D:/Jenkins/workspace/超市自动下单/html/SummaryReport.html"} <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></a></li> </ul> <hr size="3" width="100%" align="center" /> </td> </tr> </table> </body> </html>
截图如下
标签:邮件附件,SummaryReport,NUMBER,html,构建,BUILD,jenkins,jemter,邮件 来源: https://www.cnblogs.com/sammisammi/p/11510766.html