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

32
Jenkinsfile vendored
View file

@ -1,10 +1,28 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
sh './mvnw package'
}
}
agent any
stages {
stage('Build') {
steps {
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'
}
}
}
}