|
|
|
@ -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}', |
|
|
|
|
'---', |
|
|
|
|
'- 状态:<font color=#FF0000 >${currentBuild.result}</font>', |
|
|
|
|
'- 状态:<font color=#FF0000 >$\(currentBuild.result\) $\{currentBuild.result\} ${env.status}</font>', |
|
|
|
|
'- 版本:${BUILD_NUMBER}', |
|
|
|
|
'- [查看部署详情](${STATUS_URL})', |
|
|
|
|
'- [查看日志Console](${CONSOLE_URL})' |
|
|
|
|