Buh
This commit is contained in:
parent
1a5effd9a5
commit
870d882e78
1 changed files with 9 additions and 1 deletions
|
@ -14,7 +14,7 @@ def getReplicasOrDefault(deploymentConfig, project, defaultReplicas) {
|
||||||
@NonCPS
|
@NonCPS
|
||||||
def getConfig() {
|
def getConfig() {
|
||||||
def yamlAsString = "a: 1\nb: 2\nc:\n - aaa\n - bbb"
|
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() {
|
node() {
|
||||||
|
@ -25,6 +25,14 @@ node() {
|
||||||
|
|
||||||
stage("Build") {
|
stage("Build") {
|
||||||
git "https://github.com/omallo/ruby-ex.git"
|
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")
|
println readFile("deployment/config.yaml")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue