From 69a840b4a26a0a26aa77762011479a317c56f578 Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Tue, 08 Mar 2022 18:31:04 +0800
Subject: [PATCH] 补充26
---
Jenkinsfile | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 96dfb2e..bcecf24 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -124,7 +124,7 @@
script{
env.BUILD_URL = "${BUILD_URL}"
sh '''
- msg="当前构建失败,\n提交人:${GIT_COMMIT_AUTHOR}\n提交信息:\n${GIT_COMMIT_MSG}\n 构建内网链接:${BUILD_URL}"
+ msg="当前构建失败<br>提交人:${GIT_COMMIT_AUTHOR}<br>提交信息:<br>${GIT_COMMIT_MSG}<br>构建内网链接:${BUILD_URL}"
echo "$msg"
sendqq(){
rm -f tmp_in
@@ -139,9 +139,8 @@
echo "exit" >> tmp_in
}
- outMsg=$(echo $msg | sed 's|\\n|<br>|g')
- echo "$outMsg"
- sendqq "964606955" "${outMsg}"
+
+ sendqq "964606955" "${msg}"
'''
}
--
Gitblit v1.9.1