mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
silly little things hun
This commit is contained in:
parent
9666b58ca6
commit
9e1583d7a7
1 changed files with 7 additions and 9 deletions
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
@ -1,10 +1,8 @@
|
||||||
def COLOR_MAP = [
|
def COLOR_MAP = [
|
||||||
'SUCCESS': 'good',
|
'SUCCESS': 'green',
|
||||||
'FAILURE': 'danger',
|
'FAILURE': 'red',
|
||||||
]
|
]
|
||||||
def getBuildUser() {
|
|
||||||
return currentBuild.rawBuild.getCause(Cause.UserIdCause).getUserId()
|
|
||||||
}
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
tools {
|
tools {
|
||||||
|
@ -43,13 +41,13 @@ pipeline {
|
||||||
// Post-build actions
|
// Post-build actions
|
||||||
post {
|
post {
|
||||||
success{
|
success{
|
||||||
slackSend channel: '#slack-test-channel',
|
slackSend
|
||||||
color: COLOR_MAP[currentBuild.currentResult],
|
color: 'red',
|
||||||
message: "*${currentBuild.currentResult}:* Job ${env.JOB_NAME} build ${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
|
message: "*${currentBuild.currentResult}:* Job ${env.JOB_NAME} build ${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
|
||||||
}
|
}
|
||||||
failure{
|
failure{
|
||||||
slackSend channel: '#slack-test-channel',
|
slackSend
|
||||||
color: COLOR_MAP[currentBuild.currentResult],
|
color: 'green',
|
||||||
message: "*${currentBuild.currentResult}:* Job ${env.JOB_NAME} build ${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
|
message: "*${currentBuild.currentResult}:* Job ${env.JOB_NAME} build ${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue