<html>
<head>
<meta charset="UTF-8">
<title>${ENV, var="JOB_NAME"}-The ${BUILD_NUMBER} Build Log</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">
<td><br />
<b><font color="#0B610B">Scan Information</font></b>
<hr size="2" width="100%" align="center" /></td>
</tr>
<tr>
<td>
<ul>
<li>Scan Target: : ${target}</li>
<li>Scan Policy: : ${PolicyName}</li>
<li>Build Result: : ${BUILD_STATUS}</li>
</ul>
</td>
</tr>
<tr>
<td><br />
<b><font color="#0B610B">Tendency Chart</font></b>
<hr size="2" width="100%" align="center" /></td> </tr>
<td><br />
<img src="http://jenkinsIP:8080/job/Nessus/monkit/graph?category=Summary" > //monkit src displaytd> </tr>
<td><br />
<b><font color="#0B610B">New Vulnerabilities</font></b>
<hr size="2" width="100%" align="center" /></td> </tr>
${FILE,path="new.html"} //file display on the html page.
<td><br />
<b><font color="#0B610B">Build Information</font></b>
<hr size="2" width="100%" align="center" /></td>
</tr>
<tr>
<td>
<ul>
<li>Project Name : ${PROJECT_NAME}</li>
<li>Build Number : The ${BUILD_NUMBER} build</li>
<li>Cause: ${CAUSE}</li>
<li>Build Log: <a href="${BUILD_URL}console">${BUILD_URL}console</a></li>
<li>Build Url : <a href="${BUILD_URL}">${BUILD_URL}</a></li>
<li>WorkSpace : <a href="${PROJECT_URL}ws">${PROJECT_URL}ws</a></li>
<li>Project Url : <a href="${PROJECT_URL}">${PROJECT_URL}</a></li>
</ul>
</td>
</tr>
</table>
</body>
</html>
Jenkins email content customize
最新推荐文章于 2022-11-25 20:20:06 发布