ruby-ex/deployment/feature-build-pipeline.groovy
2017-01-04 12:06:28 +01:00

17 lines
512 B
Groovy

@Library('occd') _
node() {
stage("Checkout") {
deleteDir()
git(url: "https://github.com/omallo/ruby-ex.git", branch: "${FEATURE_BRANCH}", credentialsId: "github-omallo")
}
stage("Build") {
def buildVersion = occd.getFeatureBuildVersion("${FEATURE_BRANCH}")
echo "versions: build=${buildVersion}"
sh "sed -e 's/{{BUILD_VERSION}}/${buildVersion}/g' -i config.ru"
occd.build("rubex-dev", "frontend-${FEATURE_BRANCH}", "deployment/manifests/build.yaml", "${FEATURE_BRANCH}")
}
}