mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:15:49 +00:00
Merge branch 'master' into development
This commit is contained in:
commit
29fa5b40f7
1 changed files with 43 additions and 2 deletions
45
Jenkinsfile
vendored
45
Jenkinsfile
vendored
|
@ -1,10 +1,51 @@
|
||||||
|
#!/usr/bin/env groovy
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh 'echo "This is the development branch"'
|
sh './mvnw clean'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Test') {
|
||||||
|
steps {
|
||||||
|
sh './mvnw test'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Package') {
|
||||||
|
steps {
|
||||||
|
sh './mvnw package'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Deploy') {
|
||||||
|
when {
|
||||||
|
branch 'development'
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
echo "DEPLOY!"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
post {
|
||||||
|
always {
|
||||||
|
echo 'One way or another, I have finished'
|
||||||
|
}
|
||||||
|
success {
|
||||||
|
echo 'I succeeeded!'
|
||||||
|
mail to: 'daphne.augier@gmail.com',
|
||||||
|
subject: "Successful Pipeline: ${currentBuild.fullDisplayName}",
|
||||||
|
body: "Eveythink OK with ${env.BUILD_URL}\n"
|
||||||
|
}
|
||||||
|
unstable {
|
||||||
|
echo 'I am unstable :/'
|
||||||
|
}
|
||||||
|
failure {
|
||||||
|
echo 'I failed :('
|
||||||
|
}
|
||||||
|
changed {
|
||||||
|
echo 'Things were different before...'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue