From 96bc0c45ebe7776232780a7cf5da37120e234471 Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Wed, 09 Mar 2022 11:21:40 +0800
Subject: [PATCH] ttt8
---
Jenkinsfile | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 7be8eb5..6bd5cdc 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -114,7 +114,7 @@
stage('deploy') {
when { branch 'master' }
steps {
- sh 'echo test'
+ sh 'echo test2'
}
}
}
@@ -122,10 +122,19 @@
post {
unsuccessful {
script{
- def msg = "当前构建失败<br>---------------------<br>提交人:${GIT_COMMIT_AUTHOR}<br>提交信息:<br>${GIT_COMMIT_MSG}<br>---------------------<br>构建内网链接:${BUILD_URL}console"
+ String msg = '''
+ 当前构建失败<br>
+ ---------------------<br>
+ 提交人:${GIT_COMMIT_AUTHOR}<br>
+ 提交信息:<br>
+ ${GIT_COMMIT_MSG}<br>
+ ---------------------<br>
+ 构建内网链接:${BUILD_URL}console
+ '''
+ msg = msg.split("\n")
def number = "964606955"
- sendMessage(false,number,msg);
-
+ sendMessage(true,number,msg);
+ }
}
}
}
\ No newline at end of file
--
Gitblit v1.9.1