From 0f5356d43336a9364fe14afb503282e28bcac159 Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Tue, 08 Mar 2022 18:21:54 +0800
Subject: [PATCH] 补充20

---
 Jenkinsfile |   25 +++++++++++++++++++++++--
 1 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index fa2a0b4..9e97247 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -121,8 +121,29 @@
 
     post {
         unsuccessful {
-             msg =  "当前构建失败,\n提交人:${env.GIT_COMMIT_AUTHOR}\n提交信息:\n${env.GIT_COMMIT_MSG}\n 构建内网链接:${BUILD_URL}"
-             echo $msg
+            script{
+            env.BUILD_URL = "${BUILD_URL}"
+                 sh '''
+                    printenv
+                    msg="当前构建失败,\n提交人:${GIT_COMMIT_AUTHOR}\n提交信息:\n${GIT_COMMIT_MSG}\n 构建内网链接:${BUILD_URL}"
+                    echo "$msg"
+                    sendqq(){
+                      rm -f tmp_in
+                      mknod tmp_in p
+                      exec 8<> tmp_in
+
+                      telnet zllr.top 9588 <&8 &
+                      sleep 5
+                      echo "send -t qq -fn $1 $2 >> tmp_in"
+                      echo "send -t qq -fn $1 $2" >> tmp_in
+                      sleep 1
+                      echo "exit" >> tmp_in
+                    }
+
+                    sendqq "964606955" "${msg}"
+                 '''
+
+            }
         }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1