From 4b48851f4f6d4884f23c24cbff89320e5f391a46 Mon Sep 17 00:00:00 2001 From: Ovidio Mallo Date: Fri, 9 Dec 2016 15:17:10 +0100 Subject: [PATCH] Buh --- deployment/pipeline.groovy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deployment/pipeline.groovy b/deployment/pipeline.groovy index 6521e9d..6b6137f 100644 --- a/deployment/pipeline.groovy +++ b/deployment/pipeline.groovy @@ -10,6 +10,11 @@ def getReplicasOrDefault(deploymentConfig, project, defaultReplicas) { return replicas ?: defaultReplicas } +@NoCPS +def getConfig(environment) { + new Yaml().load(readFile("deployment/config.yaml")) +} + node() { def ocCmd = getOcCmd() @@ -18,7 +23,7 @@ node() { def appManifest = "deployment/manifests/app.yaml" println "teeeeeest start" - new Yaml().load(readFile(configFile)) + getConfig("dev") println "teeeeeest end" stage("Build") {