modify jenkinsfile
This commit is contained in:
parent
a0386f3e11
commit
7e3faa0134
50
Jenkinsfile
vendored
50
Jenkinsfile
vendored
|
@ -88,47 +88,17 @@ pipeline {
|
||||||
}
|
}
|
||||||
failure {
|
failure {
|
||||||
echo 'This will run only if failed'
|
echo 'This will run only if failed'
|
||||||
mail to: 'mynteye-ci@slightech.com',
|
// mail to: 'mynteye-ci@slightech.com',
|
||||||
|
mail to: 'cocowang@slightech.com',
|
||||||
subject: "编译失败 Failed Pipeline: ${currentBuild.fullDisplayName}",
|
subject: "编译失败 Failed Pipeline: ${currentBuild.fullDisplayName}",
|
||||||
body: '''<!DOCTYPE html>
|
body: """
|
||||||
<html>
|
详情:
|
||||||
<head>
|
FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'
|
||||||
<meta charset="UTF-8">
|
状态:${env.JOB_NAME} jenkins 运行失败
|
||||||
</head>
|
URL :${env.BUILD_URL}
|
||||||
<body leftmargin="8" marginwidth="0" topmargin="8" marginheight="4"
|
项目名称 :${env.JOB_NAME}
|
||||||
offset="0">
|
项目更新进度:${env.BUILD_NUMBER}
|
||||||
<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">构建信息</font></b>
|
|
||||||
<hr size="2" width="100%" align="center" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<ul>
|
|
||||||
<li>构建名称:${JOB_NAME}</li>
|
|
||||||
<li>构建结果: <span style="color:red"> ${BUILD_STATUS}</span></li>
|
|
||||||
<li>构建编号:${BUILD_NUMBER} </li>
|
|
||||||
<li>GIT 地址:${git_url}</li>
|
|
||||||
<li>GIT 分支:${git_branch}</li>
|
|
||||||
<li>变更记录: ${CHANGES,showPaths=true,showDependencies=true,format="<pre><ul><li>提交ID: %r</li><li>提交人:%a</li><li>提交时间:%d</li><li>提交信息:%m</li><li>提交文件:%p</li></ul></pre>",pathFormat="%p <br />"}
|
|
||||||
</ul>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><b><font color="#0B610B">构建日志 :</font></b>
|
|
||||||
<hr size="2" width="100%" align="center" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><textarea cols="150" rows="30" readonly="readonly"
|
|
||||||
style="font-family: Courier New">${BUILD_LOG}</textarea>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
'''
|
|
||||||
}
|
}
|
||||||
unstable {
|
unstable {
|
||||||
echo 'This will run only if the run was marked as unstable'
|
echo 'This will run only if the run was marked as unstable'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user