mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +00:00
test 5
This commit is contained in:
parent
1ad96d48b3
commit
3b37c58dfb
1 changed files with 25 additions and 11 deletions
36
Jenkinsfile
vendored
36
Jenkinsfile
vendored
|
@ -1,19 +1,33 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
notifySlack('STARTED')
|
try {
|
||||||
stage('Build') {
|
notifySlack('STARTED')
|
||||||
steps {
|
|
||||||
echo 'build'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
stage('Prepare code') {
|
||||||
post{
|
echo 'do checkout stuff'
|
||||||
failure{
|
}
|
||||||
|
|
||||||
|
stage('Testing') {
|
||||||
|
echo 'Testing'
|
||||||
|
echo 'Testing - publish coverage results'
|
||||||
|
}
|
||||||
|
|
||||||
|
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"
|
currentBuild.result = "FAILED"
|
||||||
}
|
throw e
|
||||||
always{
|
} finally {
|
||||||
|
// Success or failure, always send notifications
|
||||||
notifySlack(currentBuild.result)
|
notifySlack(currentBuild.result)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue