From 7b5ac6db23f562dca6a3842e728469a0ea7b4d66 Mon Sep 17 00:00:00 2001 From: Ovidio Mallo Date: Wed, 7 Dec 2016 23:21:17 +0100 Subject: [PATCH] Check out the code in the pipeline --- deployment/pipeline.groovy | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/deployment/pipeline.groovy b/deployment/pipeline.groovy index cb184be..aaa45db 100644 --- a/deployment/pipeline.groovy +++ b/deployment/pipeline.groovy @@ -1,12 +1,11 @@ node() { def ocCmd = "oc --token=`cat /var/run/secrets/kubernetes.io/serviceaccount/token` --server=https://openshift.default.svc.cluster.local --certificate-authority=/run/secrets/kubernetes.io/serviceaccount/ca.crt" - def buildConfigFile = "deployment/config/build.yaml" - def appConfigFile = "deployment/config/app.yaml" + def buildConfigFile = "ruby-ex/deployment/config/build.yaml" + def appConfigFile = "ruby-ex/deployment/config/app.yaml" stage('Build') { - sh "pwd" - sh "ls" + git "https://github.com/omallo/ruby-ex.git" sh "${ocCmd} process -f ${buildConfigFile} -n rubex-dev | ${ocCmd} apply -f - -n rubex-dev" sh "${ocCmd} start-build frontend -w -n rubex-dev" }