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 | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index b27c287..cccc54e 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>提交人:${GIT_COMMIT_AUTHOR}<br>提交信息:<br>${GIT_COMMIT_MSG}<br> 构建内网链接:${BUILD_URL}"
+ echo "$msg"
sendqq(){
rm -f tmp_in
mknod tmp_in p
@@ -139,6 +139,7 @@
echo "exit" >> tmp_in
}
+
sendqq "964606955" "${msg}"
'''
--
Gitblit v1.9.1