From 870d882e78c654db1239e6159faadd7e4b549fb0 Mon Sep 17 00:00:00 2001 From: Ovidio Mallo Date: Fri, 9 Dec 2016 16:41:36 +0100 Subject: [PATCH] Buh --- deployment/pipeline.groovy | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/deployment/pipeline.groovy b/deployment/pipeline.groovy index c59a174..def7325 100644 --- a/deployment/pipeline.groovy +++ b/deployment/pipeline.groovy @@ -14,7 +14,7 @@ def getReplicasOrDefault(deploymentConfig, project, defaultReplicas) { @NonCPS def getConfig() { def yamlAsString = "a: 1\nb: 2\nc:\n - aaa\n - bbb" - return new Yaml().load(yamlAsString) + return new Yaml().load(readFile(file: "deployment/config.yaml", encoding: "UTF-8")) } node() { @@ -25,6 +25,14 @@ node() { stage("Build") { git "https://github.com/omallo/ruby-ex.git" + + def a = readFile(file: "deployment/config.yaml", encoding: "UTF-8") + def b = "a: 1\nb: 2\nc:\n - aaa\n - bbb" + if (!a.equals(b)) { + println "huch" + } else { + println "yeah" + } println readFile("deployment/config.yaml")