Add test for master branch

This commit is contained in:
Daphne Augier 2020-04-11 16:45:55 +02:00 committed by GitHub
parent 8310d2b557
commit 4548820897
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

25
Jenkinsfile vendored
View file

@ -1,28 +1,31 @@
#!/usr/bin/env groovy
pipeline { pipeline {
agent any agent any
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
sh './mvnw clean' sh './mvnw clean'
} }
} }
stage('Test') { stage('Test') {
steps { steps {
sh './mvnw test' sh './mvnw test'
} }
} }
stage('Package') {
stage('Package') {
steps { steps {
sh './mvnw package' sh './mvnw package'
} }
} }
/*
stage('Deploy') { if( env.BRANCH_NAME == 'master' ) {
steps { stage('Deploy') {
sh './mvnw deploy' steps {
sh './mvnw deploy'
}
} }
} }
*/
} }
post { post {
always { always {