mirror of
https://github.com/valitydev/damsel.git
synced 2024-11-06 17:55:23 +00:00
2b2e351ed4
* Introduce invoice templates * Fix Jenkinsfile
33 lines
969 B
Groovy
33 lines
969 B
Groovy
#!groovy
|
|
// -*- mode: 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 if (env.BRANCH_NAME.startsWith('epic/')) {
|
|
sh 'make wc_deploy_epic_nexus SETTINGS_XML=$SETTINGS_XML'
|
|
} else {
|
|
sh 'make wc_java_compile SETTINGS_XML=$SETTINGS_XML'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|