From 533ba4f898e9bd2906d521aa937ecdd55f918b3a Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Tue, 08 Mar 2022 18:14:34 +0800
Subject: [PATCH] 补充15

---
 Jenkinsfile |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 9bd41d4..903a4ab 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -122,8 +122,25 @@
     post {
         unsuccessful {
             script{
-                 msg =  "当前构建失败,\n提交人:${env.GIT_COMMIT_AUTHOR}\n提交信息:\n${env.GIT_COMMIT_MSG}\n 构建内网链接:${BUILD_URL}"
-                 echo "$msg"
+                 sh '''
+                    msg="当前构建失败,\n提交人:${env.GIT_COMMIT_AUTHOR}\n提交信息:\n${env.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}"
+                 '''
+
             }
         }
     }

--
Gitblit v1.9.1