From dbf1c5c5f0f6ccf80638435872102d3e0a406f55 Mon Sep 17 00:00:00 2001 From: newrain001 Date: Thu, 21 Dec 2023 11:11:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'Jenkinsfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7ce0ae2..bb791bc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,6 +11,7 @@ pipeline { DEPLOYMENT_NAME = "deploy.yml" STATUS_URL = "http://qf.jenkins.vip:30210/job/test/${BUILD_NUMBER}" CONSOLE_URL = "http://qf.jenkins.vip:30210/job/test/${BUILD_NUMBER}/console" + status = ${currentBuild.result} } agent { kubernetes { @@ -90,7 +91,7 @@ spec: text: [ '### 项目 ${PROJECT_NAME}', '---', - '- 状态:${currentBuild.result}', + '- 状态:$\(currentBuild.result\) $\{currentBuild.result\} ${env.status}', '- 版本:${BUILD_NUMBER}', '- [查看部署详情](${STATUS_URL})', '- [查看日志Console](${CONSOLE_URL})'