Some renaming

This commit is contained in:
Ovidio Mallo 2017-01-04 12:45:33 +01:00
parent bb8b27f0b7
commit 92cc572189
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -2,7 +2,7 @@
node() { node() {
stage("Deploy to PREV") { stage("Deploy to PREV") {
occd.tag("rubex-dev", "frontend", "${SOURCE_IMAGE_STREAM_TAG}", "prev") occd.tag("rubex-dev", "frontend", "b-${BRANCH}", "prev")
occd.rollout("rubex-prev", "frontend", config.prev.deployment.frontend) occd.rollout("rubex-prev", "frontend", config.prev.deployment.frontend)
} }
} }