From 977c7a16fead52edcc7bd8a1409578a5fa503d44 Mon Sep 17 00:00:00 2001 From: newrain001 Date: Thu, 6 Jul 2023 12:16:41 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: newrain001 --- cloud/Jenkinsfile | 57 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/cloud/Jenkinsfile b/cloud/Jenkinsfile index cf1ea49..6e20bb5 100644 --- a/cloud/Jenkinsfile +++ b/cloud/Jenkinsfile @@ -43,4 +43,61 @@ pipeline { } } } + post { + always { + emailext ( + subject: '项目 【$PROJECT_NAME】 第【$BUILD_NUMBER】次构建 - $BUILD_STATUS!', + body: ''' + + + + +${ENV, var="JOB_NAME"}-第${BUILD_NUMBER}次构建日志 + + + + +

本邮件由系统自动发出,请勿回复!

+ +
+ 各位同事,大家好,以下为${PROJECT_NAME }项目构建信息
+ + + + + + + + +
构建结果 - ${BUILD_STATUS}

+ 构建信息 +
+ + +

最近提交

+
    +
    +${CHANGES_SINCE_LAST_SUCCESS, reverse=true, format="%c", changesFormat="
  • %d [%a] %m
  • "} +
+详细提交: ${PROJECT_URL}changes
+ +
+ + +''', + to: '1161733918@qq.com', + attachLog: true + ) + } + } } \ No newline at end of file