更新 'Jenkinsfile'

main
newrain001 11 months ago
parent 8e2b6ff283
commit c26bc689b8
  1. 18
      Jenkinsfile

18
Jenkinsfile vendored

@ -1,6 +1,6 @@
pipeline {
environment {
APP_NAME = "RuoYi"
PROJECT_NAME = "test"
DOCKER_REPOSITORY_CREDENTIAL_ID = "7cc63152-c727-40fc-b177-d8397396f1ba"
HARBOR_HOST = "registry.cn-hangzhou.aliyuncs.com"
NAMESPACE_NAME = "newrain_wang"
@ -9,6 +9,8 @@ pipeline {
REPLICAS = 4
YAML_PATH = "k8s/"
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"
}
agent {
kubernetes {
@ -88,11 +90,10 @@ spec:
text: [
'### 项目 ${PROJECT_NAME}',
'---',
'- 触发原因: ${CAUSE} ',
'- 状态:<font color=#FF0000 >${BUILD_STATUS}</font>',
'- 状态:<font color=#FF0000 >${currentBuild.result}</font>',
'- 版本:${BUILD_NUMBER}',
'- [查看部署详情](${PROJECT_URL})',
'- [查看日志Console](${BUILD_URL})'
'- [查看部署详情](${STATUS_URL})',
'- [查看日志Console](${CONSOLE_URL})'
],
at: [
'17694993496'
@ -119,11 +120,10 @@ spec:
text: [
'### 项目 ${PROJECT_NAME}',
'---',
'- 触发原因: ${CAUSE} ',
'- 状态:<font color=#FF0000 >${BUILD_STATUS}</font>',
'- 状态:<font color=#FF0000 >${currentBuild.result}</font>',
'- 版本:${BUILD_NUMBER}',
'- [查看部署详情](${PROJECT_URL})',
'- [查看日志Console](${BUILD_URL})'
'- [查看部署详情](${STATUS_URL})',
'- [查看日志Console](${CONSOLE_URL})'
],
at: [
'17694993496'

Loading…
Cancel
Save