modified jenkins file

This commit is contained in:
carlitalabbe 2020-04-02 13:05:28 -04:00
parent 9228d4b05d
commit 5873eb7011

25
Jenkinsfile vendored
View file

@ -1,10 +1,35 @@
pipeline {
agent any
tools {
maven 'maven 3.6.3'
jdk 'jdk-1.8'
}
stages {
stage('Build') {
steps {
sh './mvnw clean compile'
}
}
stage('Test') {
steps {
sh './mvnw test'
}
}
stage('Package') {
steps {
sh './mvnw package'
}
}
stage('Deploy') {
/* only deploy when branch is master */
when {
branch 'master'
}
steps {
sh './mvnw deploy'
}
}
}