HCRival/HCTeams/Jenkinsfile

15 lines
261 B
Plaintext
Raw Normal View History

node {
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'
}
}