pipeline {
agent any
environment {
sendmail = 'yes'
recipients = 'xxxxx@qq.com,xxxxx@qq.com,xxxxx@qq.com'
}
stages {
}
post{
success {
script {
if (sendmail == 'yes') {
emailext to: "${recipients}", body: '''
<html>
<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>
<br />
<b><font color="#0B610B">Build Information</font></b>
<hr size="2" width="100%&#
Jenkins-JenkinsFile-mailext邮件发送模板
最新推荐文章于 2024-08-16 08:49:50 发布
本文介绍如何在Jenkins中利用Jenkinsfile和mailext插件自定义构建报告邮件模板,详细阐述配置步骤及模板语法,帮助提升自动化构建通知的效率和可读性。
摘要由CSDN通过智能技术生成