This commit is contained in:
Ovidio Mallo 2016-12-09 16:22:02 +01:00
parent 64ab8c6d75
commit 03545a2504
2 changed files with 6 additions and 5 deletions

View file

@ -1,4 +1,5 @@
dev:
foo: bar
test:
foo2: bar2
a: 1
b: 2
c:
- aaa
- bbb

View file

@ -14,7 +14,7 @@ def getReplicasOrDefault(deploymentConfig, project, defaultReplicas) {
@NonCPS
def getConfig() {
def yamlAsString = "{JYaml: Original Java Implementation, JvYaml: Java port of RbYaml, SnakeYAML: Java 5 / YAML 1.1, YamlBeans: To/from JavaBeans}"
return new Yaml().load("a: 1\nb: 2\nc:\n - aaa\n - bbb")
return new Yaml().load(readFile("deployment/config.yaml"))
}
node() {