标签:center head 结果 zip tla result http table 图片
配置企业邮箱 开启smtp发件设置Manage Jenkins->configure system
构建通知单: $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>${ENV, var="JOB_NAME"}-第${BUILD_NUMBER}次构建日志</title>
</head>
<body leftmargin="8" marginwidth="0" topmargin="8" marginheight="4"
offset="0">
<table width="95%" cellpadding="0" cellspacing="0"
style="font-size: 11pt; 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="2" width="100%" align="center" /></td>
</tr>
<tr>
<td>
<ul>
<li>项目名称?:?${PROJECT_NAME}</li>
<li>构建编号?:?第${BUILD_NUMBER}次构建</li>
<li>GitLab?版本:?10.1.1-ce.0</li>
<li>触发原因:?${CAUSE}</li>
<li>构建日志:?<a href="${BUILD_URL}console">${BUILD_URL}console</a></li>
<li>构建??Url?:?<a href="${BUILD_URL}">${BUILD_URL}</a></li>
<li>工作目录?:?<a href="${PROJECT_URL}ws">${PROJECT_URL}ws</a></li>
<li>项目??Url?:?<a href="${PROJECT_URL}">${PROJECT_URL}</a></li>
<li>变更集:${JELLY_SCRIPT,template="html"}</a></li>
</ul>
</td>
</tr>
<tr>
<td><b><font color="#0B610B">Changes Since Last
Successful Build:</font></b>
<hr size="2" width="100%" align="center" /></td>
</tr>
<tr>
<td>
<ul>
<li>历史变更记录 : <a href="${PROJECT_URL}changes">${PROJECT_URL}changes</a></li>
</ul> ${CHANGES_SINCE_LAST_SUCCESS,reverse=true, format="Changes for Build #%n:<br />%c<br />",showPaths=true,changesFormat="<pre>[%a]<br />%m</pre>",pathFormat="????%p"}
</td>
</tr>
<tr>
<td><b>Failed Test Results</b>
<hr size="2" width="100%" align="center" /></td>
</tr>
<tr>
<td><pre
style="font-size: 11pt; font-family: Tahoma, Arial, Helvetica, sans-serif">$FAILED_TESTS</pre>
<br /></td>
</tr>
<tr>
<td><b><font color="#0B610B">构建日志:</font></b>
<hr size="2" width="100%" align="center" /></td>
</tr>
<!-- <tr>
<td>Test Logs (if test has ran): <a
href="${PROJECT_URL}ws/TestResult/archive_logs/Log-Build-${BUILD_NUMBER}.zip">${PROJECT_URL}/ws/TestResult/archive_logs/Log-Build-${BUILD_NUMBER}.zip</a>
<br />
<br />
</td>
</tr> -->
<tr>
<td><textarea cols="80" rows="30" readonly="readonly"
style="font-family: Courier New">${BUILD_LOG, maxLines=10000}</textarea>
</td>
</tr>
</table>
</body>
</html>
如果报错 请根据对应的报错信息修改 对应的设置或者开启对用的发送邮件设置
我这里吧所有的信息都添加了 线上需要自己需要的选择对应的
多个收件人 需要, 分隔 例如:hz7726@163.com,hz7726@164.com,.......
点击构建发布
标签:center head 结果 zip tla result http table 图片
原文地址:https://blog.51cto.com/9025736/2519391