mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:15:49 +00:00
testing 2
This commit is contained in:
parent
a81b521880
commit
cfb812d8f1
1 changed files with 16 additions and 16 deletions
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
@ -1,14 +1,13 @@
|
||||||
node {
|
|
||||||
try {
|
|
||||||
notifySlack('STARTED')
|
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
node {
|
||||||
|
try {
|
||||||
|
notifyBuild('STARTED')
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Build'
|
echo 'build'
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,11 +18,12 @@ node {
|
||||||
throw e
|
throw e
|
||||||
} finally {
|
} finally {
|
||||||
// Success or failure, always send notifications
|
// Success or failure, always send notifications
|
||||||
notifySlack(currentBuild.result)
|
notifyBuild(currentBuild.result)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def notifySlack(String buildStatus = 'STARTED') {
|
def notifyBuild(String buildStatus = 'STARTED') {
|
||||||
// build status of null means successful
|
// build status of null means successful
|
||||||
buildStatus = buildStatus ?: 'SUCCESSFUL'
|
buildStatus = buildStatus ?: 'SUCCESSFUL'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue