Buh
This commit is contained in:
parent
870d882e78
commit
0ba6a1cae2
1 changed files with 3 additions and 4 deletions
|
@ -12,9 +12,8 @@ def getReplicasOrDefault(deploymentConfig, project, defaultReplicas) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonCPS
|
@NonCPS
|
||||||
def getConfig() {
|
def getConfig(cfg) {
|
||||||
def yamlAsString = "a: 1\nb: 2\nc:\n - aaa\n - bbb"
|
return new Yaml().load(cfg)
|
||||||
return new Yaml().load(readFile(file: "deployment/config.yaml", encoding: "UTF-8"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
node() {
|
node() {
|
||||||
|
@ -37,7 +36,7 @@ node() {
|
||||||
println readFile("deployment/config.yaml")
|
println readFile("deployment/config.yaml")
|
||||||
|
|
||||||
println "teeeeeest start"
|
println "teeeeeest start"
|
||||||
def config = getConfig()
|
def config = getConfig(a)
|
||||||
println config.getClass()
|
println config.getClass()
|
||||||
println config
|
println config
|
||||||
println "teeeeeest end"
|
println "teeeeeest end"
|
||||||
|
|
Loading…
Add table
Reference in a new issue