mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
Update Jenkinsfile
This commit is contained in:
parent
9e66ea8859
commit
e01f7bf168
1 changed files with 16 additions and 5 deletions
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
|
@ -19,11 +19,22 @@ pipeline {
|
|||
}
|
||||
|
||||
stage('Deploy') {
|
||||
|
||||
steps {
|
||||
sh 'mvn deploy'
|
||||
}
|
||||
}
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
steps {
|
||||
sh 'mvn deploy'}
|
||||
}
|
||||
}
|
||||
stage('Slack Notification') {
|
||||
steps {
|
||||
slackSend baseUrl: 'https://hooks.slack.com/services/',
|
||||
channel: '#jenkins',
|
||||
message: 'Build Status',
|
||||
tokenCredentialId: 'slack',
|
||||
teamDomain: 'soen345'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue