From f84e9b6dd5413f873e6b32b146af21ba0749135f Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Tue, 08 Mar 2022 18:29:04 +0800
Subject: [PATCH] 补充25

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

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

--
Gitblit v1.9.1