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: frontend:
templates: templates:
- manifest: deployment/manifests/build.yaml - manifest: deployment/manifests/build.yaml
parameters:
TARGET_IMAGE_STREAM_TAG: b-master
deployment: deployment:
frontend: frontend:
templates: templates:

View file

@ -18,7 +18,7 @@ node() {
} }
stage("Deploy to DEV") { 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) occd.rollout("rubex-dev", "frontend", config.dev.deployment.frontend)
} }

View file

@ -4,6 +4,5 @@ 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: "${FEATURE_BRANCH}", credentialsId: "github-omallo")
sh "git status"
} }
} }

View file

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