damsel/Jenkinsfile
2016-09-10 01:24:38 +03:00

31 lines
746 B
Groovy

#!groovy
build('damsel', 'docker-host') {
checkoutRepo()
loadBuildUtils()
def pipeDefault
runStage('load pipeline') {
env.JENKINS_LIB = "build_utils/jenkins_lib"
pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy")
}
pipeDefault() {
runStage('compile') {
sh "make wc_compile"
}
runStage('Execute build container') {
withCredentials([[$class: 'FileBinding', credentialsId: 'java-maven-settings.xml', variable: 'SETTINGS_XML']]) {
if (env.BRANCH_NAME == 'master') {
sh 'make wc_deploy_nexus SETTINGS_XML=$SETTINGS_XML'
} else {
sh 'make wc_java_compile SETTINGS_XML=$SETTINGS_XML'
}
}
}
}
}