Merge branch 'master' into development

This commit is contained in:
Daphne Augier 2020-04-11 20:54:19 +02:00 committed by GitHub
commit 29fa5b40f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

45
Jenkinsfile vendored
View file

@ -1,10 +1,51 @@
#!/usr/bin/env groovy
pipeline {
agent any
stages {
stage('Build') {
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...'
}
}
}