Build to a new tag named "b-master"

This commit is contained in:
Ovidio Mallo 2017-01-04 01:19:16 +01:00
parent 70b38d2742
commit efc71d9f2d
4 changed files with 7 additions and 3 deletions

View File

@ -3,6 +3,8 @@ dev:
frontend:
templates:
- manifest: deployment/manifests/build.yaml
parameters:
TARGET_IMAGE_STREAM_TAG: b-master
deployment:
frontend:
templates:

View File

@ -18,7 +18,7 @@ node() {
}
stage("Deploy to DEV") {
occd.tag("rubex-dev", "frontend", "latest", "dev")
occd.tag("rubex-dev", "frontend", "b-master", "dev")
occd.rollout("rubex-dev", "frontend", config.dev.deployment.frontend)
}

View File

@ -4,6 +4,5 @@ node() {
stage("Checkout") {
deleteDir()
git(url: "https://github.com/omallo/ruby-ex.git", branch: "${FEATURE_BRANCH}", credentialsId: "github-omallo")
sh "git status"
}
}

View File

@ -17,7 +17,7 @@ objects:
output:
to:
kind: ImageStreamTag
name: frontend:latest
name: frontend:${TARGET_IMAGE_STREAM_TAG}
source:
type: Binary
binary: {}
@ -28,3 +28,6 @@ objects:
kind: ImageStreamTag
name: ruby:2.3
namespace: openshift
- description: The image stream tag to build to.
displayName: Target image stream tag
name: TARGET_IMAGE_STREAM_TAG