From 627e4c2880dc3ef6ac7556f2104f41ea855be1f7 Mon Sep 17 00:00:00 2001 From: Ovidio Mallo Date: Fri, 9 Dec 2016 14:43:49 +0100 Subject: [PATCH] PoC to read config from a file --- deployment/pipeline.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deployment/pipeline.groovy b/deployment/pipeline.groovy index 7b0331b..feab530 100644 --- a/deployment/pipeline.groovy +++ b/deployment/pipeline.groovy @@ -1,3 +1,5 @@ +import groovy.json.JsonSlurper + def getOcCmd() { return "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" }