Update Jenkinsfile

This commit is contained in:
MHD Laith Awad 2020-03-16 08:20:32 -04:00 committed by GitHub
parent 2b0ed2cb2c
commit d4a069fa31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

18
Jenkinsfile vendored
View file

@ -3,7 +3,23 @@ pipeline {
stages {
stage('Build') {
steps {
sh './mvnw package'
sh 'mvn clean'
}
}
stage('Test') {
steps {
sh 'mvn test'
}
}
stage('Package') {
steps {
sh 'mvn package'
}
}
stage('Deploy') {
when{branch 'master'}
steps {
sh 'mvn deploy'
}
}
}