Update Jenkinsfile

This commit is contained in:
Shayan 2020-03-16 00:13:52 -04:00 committed by GitHub
parent 43e5e0ced1
commit bb9f4ab901
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
Jenkinsfile vendored
View file

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