Skip to content

Commit

Permalink
Updated jenkinsfile to use IS
Browse files Browse the repository at this point in the history
(cherry picked from commit 73f162c)
  • Loading branch information
chris.ditcher authored and chris.ditcher committed Jun 30, 2022
1 parent fd9ea35 commit f68dde6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/jenkins/Jenkinsfile-api
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pipeline{
openshift.withProject(DEV_NAMESPACE) {
openshift.apply(
openshift.process("-f", "${SOURCE_REPO_URL_RAW}/${BRANCH}/tools/openshift/api.dc.yaml",
"REPO_NAME=${REPO_NAME}", "HOST_ROUTE=${DEV_HOST_ROUTE}")
"IS_NAMESPACE=${TOOLS_NAMESPACE}", "REPO_NAME=${REPO_NAME}", "HOST_ROUTE=${DEV_HOST_ROUTE}")
)
openshift.selector("dc", "${REPO_NAME}-dc").rollout().latest()
timeout (time: 10, unit: 'MINUTES') {
Expand Down
5 changes: 4 additions & 1 deletion tools/openshift/api.dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ objects:
deploymentConfig: "${REPO_NAME}-dc"
spec:
containers:
- image: image-registry.openshift-image-registry.svc:5000/77c02f-tools/${REPO_NAME}:${TAG_NAME}
- image: image-registry.openshift-image-registry.svc:5000/${IS_NAMESPACE}/${REPO_NAME}:${TAG_NAME}
imagePullPolicy: Always
volumeMounts:
- name: log-storage
Expand Down Expand Up @@ -149,6 +149,9 @@ parameters:
- name: REPO_NAME
description: Application repository name
required: true
- name: IS_NAMESPACE
description: The namespace where the imagestream lives
required: true
- name: TAG_NAME
description: Imagestream tag name
required: false
Expand Down

0 comments on commit f68dde6

Please sign in to comment.