Split build into stages

This commit is contained in:
Felix 2020-03-15 23:04:34 -04:00
parent 856bce81a3
commit 9e80d58896

26
Jenkinsfile vendored
View file

@ -1,10 +1,28 @@
pipeline { pipeline {
agent any agent any
stages { stages {
stage('Build') { stage('Build') {
steps {
sh './mvnw clean install'
}
}
stage('Test') {
steps {
sh './mvnw test'
}
}
stage('Package') {
steps { steps {
sh './mvnw package' sh './mvnw package'
} }
} }
}
stage('Deploy') {
steps {
sh './mvnw deploy
}
}
}
} }