更新 'Jenkinsfile'

main
newrain001 11 months ago
parent 6b8f71f82a
commit 4845477933
  1. 39
      Jenkinsfile

39
Jenkinsfile vendored

@ -76,6 +76,25 @@ spec:
""" """
} }
} }
post {
failure {
dingtalk (
robot: '4eabbd09-a21a-40a9-84db-6440c0daebec',
type: 'MARKDOWN',
title: '项目',
text: [
'### Jenkins_job',
'---',
'- 状态:<font color=#FF0000 >${appName}代码编译失败</font>',
'- 版本:${BUILD_NUMBER}',
'- [查看部署详情](${STATUS_URL})',
'- [查看日志Console](${CONSOLE_URL})'
],
at: [
'17694993496'
]
)
}
} }
} }
stage('部署到kubernetes') { stage('部署到kubernetes') {
@ -86,6 +105,26 @@ spec:
kubectl apply -f ${env.YAML_PATH} kubectl apply -f ${env.YAML_PATH}
""" """
} }
post {
failure {
dingtalk (
robot: '4eabbd09-a21a-40a9-84db-6440c0daebec',
type: 'MARKDOWN',
title: '项目部署',
text: [
'### Jenkins_job',
'---',
'- 状态:<font color=#FF0000 >${appName}项目部署失败</font>',
'- 版本:${BUILD_NUMBER}',
'- [查看部署详情](${STATUS_URL})',
'- [查看日志Console](${CONSOLE_URL})'
],
at: [
'17694993496'
]
)
}
}
} }
} }

Loading…
Cancel
Save