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 |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

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

--
Gitblit v1.9.1