mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:15: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 = [
|
||||
'SUCCESS': 'good',
|
||||
'FAILURE': 'danger',
|
||||
'SUCCESS': 'green',
|
||||
'FAILURE': 'red',
|
||||
]
|
||||
def getBuildUser() {
|
||||
return currentBuild.rawBuild.getCause(Cause.UserIdCause).getUserId()
|
||||
}
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
tools {
|
||||
|
@ -43,13 +41,13 @@ pipeline {
|
|||
// Post-build actions
|
||||
post {
|
||||
success{
|
||||
slackSend channel: '#slack-test-channel',
|
||||
color: COLOR_MAP[currentBuild.currentResult],
|
||||
slackSend
|
||||
color: 'red',
|
||||
message: "*${currentBuild.currentResult}:* Job ${env.JOB_NAME} build ${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
|
||||
}
|
||||
failure{
|
||||
slackSend channel: '#slack-test-channel',
|
||||
color: COLOR_MAP[currentBuild.currentResult],
|
||||
slackSend
|
||||
color: 'green',
|
||||
message: "*${currentBuild.currentResult}:* Job ${env.JOB_NAME} build ${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue