mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
test 6
This commit is contained in:
parent
3b37c58dfb
commit
32bee7d881
1 changed files with 12 additions and 24 deletions
36
Jenkinsfile
vendored
36
Jenkinsfile
vendored
|
@ -1,35 +1,23 @@
|
|||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
try {
|
||||
script {
|
||||
try {
|
||||
notifySlack('STARTED')
|
||||
|
||||
stage('Prepare code') {
|
||||
echo 'do checkout stuff'
|
||||
stage('Build') {
|
||||
echo 'build'
|
||||
}
|
||||
|
||||
stage('Testing') {
|
||||
echo 'Testing'
|
||||
echo 'Testing - publish coverage results'
|
||||
} catch (e) {
|
||||
// If there was an exception thrown, the build failed
|
||||
currentBuild.result = "FAILED"
|
||||
throw e
|
||||
} finally {
|
||||
// Success or failure, always send notifications
|
||||
notifySlack(currentBuild.result)
|
||||
}
|
||||
|
||||
stage('Staging') {
|
||||
echo 'Deploy Stage'
|
||||
}
|
||||
|
||||
stage('Deploy') {
|
||||
echo 'Deploy - Backend'
|
||||
echo 'Deploy - Frontend'
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
// If there was an exception thrown, the build failed
|
||||
currentBuild.result = "FAILED"
|
||||
throw e
|
||||
} finally {
|
||||
// Success or failure, always send notifications
|
||||
notifySlack(currentBuild.result)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue