Update Jenkinsfile

This commit is contained in:
Chen 2020-03-09 03:48:19 -04:00 committed by GitHub
parent eb20a31a7c
commit a311a14e2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

17
Jenkinsfile vendored
View file

@ -7,5 +7,22 @@ pipeline {
sh './mvnw package'
}
}
stage('Test') {
steps {
sh 'mvn clean test'
}
}
stage('Package') {
steps {
echo 'Package'
}
}
stage('Deploy') {
if (env.BRANCH_NAME == 'master') {
steps {
echo 'Deploy'
}
}
}
}
}