From e31acc4fdf0790c64ac1d6703fee3fe99110e6f2 Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Tue, 08 Mar 2022 18:31:59 +0800
Subject: [PATCH] 补充27

---
 Jenkinsfile |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index ba536cb..e80c412 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -122,9 +122,9 @@
     post {
         unsuccessful {
             script{
+            env.BUILD_URL = "${BUILD_URL}"
                  sh '''
-                    printenv
-                    msg="当前构建失败,\n提交人:${env.GIT_COMMIT_AUTHOR}\n提交信息:\n${env.GIT_COMMIT_MSG}\n 构建内网链接:\${BUILD_URL}"
+                    msg="当前构建失败<br>---------------------<br>提交人:${GIT_COMMIT_AUTHOR}<br>提交信息:<br>${GIT_COMMIT_MSG}<br>---------------------<br>构建内网链接:${BUILD_URL}"
                     echo "$msg"
                     sendqq(){
                       rm -f tmp_in
@@ -139,6 +139,7 @@
                       echo "exit" >> tmp_in
                     }
 
+
                     sendqq "964606955" "${msg}"
                  '''
 

--
Gitblit v1.9.1