From 15128fddf20a131a839cd926bd5762efc8fdc35e Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Wed, 09 Mar 2022 12:14:04 +0800
Subject: [PATCH] ttt15

---
 Jenkinsfile |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index ead94ad..e289a1c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -122,15 +122,16 @@
     post {
         unsuccessful {
             script{
-                def msg = '''
-                        当前构建失败\<br\>
-                        ---------------------\<br\>
-                        提交人:${GIT_COMMIT_AUTHOR}\<br\>
-                        提交信息:\<br\>
-                        ${GIT_COMMIT_MSG}\<br\>
-                        ---------------------\<br\>
+                String msg = """
+                        当前构建失败<br>
+                        #####################<br>
+                        提交人:${GIT_COMMIT_AUTHOR}<br>
+                        提交信息:<br>
+                        ${GIT_COMMIT_MSG}<br>
+                        #####################<br>
                         构建内网链接:${BUILD_URL}console
-                    '''
+                    """
+                msg = msg.replaceAll("\n","")
                 def number = "964606955"
                 sendMessage(true,number,msg);
             }

--
Gitblit v1.9.1