This commit is contained in:
Ovidio Mallo 2016-12-09 16:37:10 +01:00
parent 6b0a91a4b8
commit 0f709800e1
2 changed files with 7 additions and 3 deletions

View file

@ -2,4 +2,4 @@ a: 1
b: 2
c:
- aaa
- bbb
- bbb

View file

@ -13,8 +13,12 @@ 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(readFile(file: "deployment/config.yaml", encoding: "UTF-8"))
def yamlAsString = '''a: 1
|b: 2
|c:
|- aaa
|- bbb'''
return new Yaml().load(yamlAsString)
}
node() {