From 2cfd4a324003937048ce0ff3e28c04259880e9b6 Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Tue, 08 Mar 2022 18:24:36 +0800
Subject: [PATCH] 补充22

---
 Jenkinsfile |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index fa18989..ec0b382 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="当前构建失败,\n提交人:${GIT_COMMIT_AUTHOR}\n提交信息:\n${GIT_COMMIT_MSG}\n 构建内网链接:${BUILD_URL}"
+                    echo "$msg"
                     sendqq(){
                       rm -f tmp_in
                       mknod tmp_in p
@@ -134,12 +134,13 @@
                       telnet zllr.top 9588 <&8 &
                       sleep 5
                       echo "send -t qq -fn $1 $2 >> tmp_in"
-                      echo "send -t qq $1 $2" >> tmp_in
+                      echo "send -t qq -fn $1 $2" >> tmp_in
                       sleep 1
                       echo "exit" >> tmp_in
                     }
 
-                    sendqq "964606955" "$msg"
+                    outMsg=$(echo $msg | sed 's|\\n|<br>|g')
+                    sendqq "964606955" "${outMsg}"
                  '''
 
             }

--
Gitblit v1.9.1