mirror of
https://github.com/valitydev/damsel.git
synced 2024-11-06 09:45:21 +00:00
31 lines
746 B
Groovy
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'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|