APIv3/Jenkinsfile

15 lines
261 B
Plaintext
Raw Normal View History

2016-05-21 21:30:58 +02:00
node {
2017-09-01 18:13:25 +02:00
stage('Clone') {
checkout scm
}
stage('Build') {
def verb = env.BRANCH_NAME == 'master' ? 'deploy' : 'package'
sh "${tool 'M3'}/bin/mvn clean ${verb} -U"
}
stage('Archive') {
archive 'target/*.jar'
}
2016-05-21 21:30:58 +02:00
}