|
一、Eclipse环境准备Jdk配置配置环境变量
点击计算机属性--->高级设置--->环境变量。添加MAVEN_HOME/PATH关于Maven的配置
file:///C:/Users/admin/AppData/Local/Temp/msohtmlclip1/01/clip_image069.jpg
邮件内容,参考如下:
<!DOCTYPEhtml>
<html>
<head>
<metacharset="UTF-8">
<title>${ENV,var="JOB_NAME"}-第${BUILD_NUMBER}次构建日志</title>
</head>
<bodyleftmargin="8" marginwidth="0" topmargin="8"marginheight="4"
offset="0">
<div>
<table width="95%"cellpadding="0" cellspacing="0"
style="font-size: 11pt;font-family: Tahoma, Arial, Helvetica, sans-serif">
<tr>
<th align="center"colspan="2"><br />
<h2>构建信息</h2>
</th>
</tr>
<tr>
<td>
<ul>
<li>项目名称 :${PROJECT_NAME}</li><br />
<li>详细测试报告 : <ahref="${PROJECT_URL}测试报告">${PROJECT_URL}测试报告</a></li><br />
<li>触发原因:${CAUSE}</li><br />
<li>项目 Url : <ahref="${PROJECT_URL}">${PROJECT_URL}</a></li><br/>
</ul>
</td>
<td>${JELLY_SCRIPT,template="html"}<br/>
</tr>
<tr>
<td colspan="2"align="center"><br />
<h2>测试报告</h2>
</td>
</tr>
<tr>
<td colspan="2"align="center"> <div>${FILE,path="C:/Users/kingdee/.jenkins/workspace/AutoTestDemo/target/surefire-reports/emailable-report.html"}</div>
</td>
</tr>
</table>
</div>
</body>
</html>
|
|