Update Jenkinsfile

This commit is contained in:
Alex 2020-03-10 20:45:31 -04:00 committed by GitHub
parent e1be3df4ae
commit 77f9ba23c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

23
Jenkinsfile vendored
View file

@ -1,10 +1,33 @@
pipeline { pipeline {
agent any agent any
stages { stages {
stage('Build') { stage('Build') {
when { branch 'master' }
steps {
sh './mvnw compile'
}
}
stage('Test') {
when { branch 'master' }
steps {
sh './mvnw test'
}
}
stage('Package') {
when { branch 'master' }
steps { steps {
sh './mvnw package' sh './mvnw package'
} }
} }
stage('Deploy') {
when { branch 'master' }
steps {
sh './mvnw deploy'
}
}
} }
} }