From db41815a98a94964640df0044b3f63a3e345ea1d Mon Sep 17 00:00:00 2001 From: Ovidio Mallo Date: Tue, 6 Dec 2016 14:00:22 +0100 Subject: [PATCH] Always specify the project for OC commands --- deployment/pipeline.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deployment/pipeline.groovy b/deployment/pipeline.groovy index 9e926c9..9cd65a1 100644 --- a/deployment/pipeline.groovy +++ b/deployment/pipeline.groovy @@ -5,12 +5,12 @@ node() { def appConfigUrl = "https://raw.githubusercontent.com/omallo/ruby-ex/master/deployment/config/app.yaml" stage('Build') { - sh "${ocCmd} process -f ${buildConfigUrl} | ${ocCmd} apply -f -" + sh "${ocCmd} process -f ${buildConfigUrl} -n rubex-dev | ${ocCmd} apply -f - -n rubex-dev" sh "${ocCmd} start-build frontend -w -n rubex-dev" } stage('Deploy to DEV') { - sh "${ocCmd} process -f ${appConfigUrl} -v ENV=dev | ${ocCmd} apply -f -" + sh "${ocCmd} process -f ${appConfigUrl} -v ENV=dev -n rubex-dev | ${ocCmd} apply -f - -n rubex-dev" sh "${ocCmd} tag rubex-dev/frontend:latest rubex-dev/frontend:dev" sh "${ocCmd} deploy frontend --latest --follow -n rubex-dev" } @@ -22,7 +22,7 @@ node() { if (isPromoteToTest) { stage('Deploy to TEST') { - sh "${ocCmd} process -f ${appConfigUrl} -v ENV=test | ${ocCmd} apply -f -" + sh "${ocCmd} process -f ${appConfigUrl} -v ENV=test -n rubex-test | ${ocCmd} apply -f - -n rubex-test" sh "${ocCmd} tag rubex-dev/frontend:dev rubex-dev/frontend:test" sh "${ocCmd} deploy frontend --latest --follow -n rubex-test" }