From c5e302864c94726e9c770e62943b8144ebad658f Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Tue, 08 Mar 2022 18:05:36 +0800
Subject: [PATCH] 补充10

---
 Jenkinsfile |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 2bdc285..fa2a0b4 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -64,6 +64,7 @@
                     ##mkdir \$dir_name
                     ##cp *.war \$dir_name
                     ##zip -r "\$dir_name.zip" \$dir_name
+                    exit 1
                 '''
             }
         }
@@ -119,11 +120,9 @@
     }
 
     post {
-        always {
-            echo "执行完成 \n提交人:${env.GIT_COMMIT_AUTHOR}\n提交信息:\n${env.GIT_COMMIT_MSG}"
-        }
-        unsuccessful{
-            echo 'unsuccessful '
+        unsuccessful {
+             msg =  "当前构建失败,\n提交人:${env.GIT_COMMIT_AUTHOR}\n提交信息:\n${env.GIT_COMMIT_MSG}\n 构建内网链接:${BUILD_URL}"
+             echo $msg
         }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1