can you define an already defined object?
This commit is contained in:
parent
bd9fee8640
commit
b5f2ed9727
@ -4,7 +4,8 @@ def call(body) {
|
|||||||
body.delegate = config
|
body.delegate = config
|
||||||
body ()
|
body ()
|
||||||
|
|
||||||
/* def reposConfig = [:]
|
/*
|
||||||
|
def reposConfig = [:]
|
||||||
config.reposConfig.each{repo ->
|
config.reposConfig.each{repo ->
|
||||||
reposConfig[repo.key] = [
|
reposConfig[repo.key] = [
|
||||||
gitBranch: repo.value.gitBranch,
|
gitBranch: repo.value.gitBranch,
|
||||||
@ -17,7 +18,8 @@ def call(body) {
|
|||||||
|
|
||||||
Map reposConfig = config.reposConfig ?: [:]
|
Map reposConfig = config.reposConfig ?: [:]
|
||||||
reposConfig.each{repo ->
|
reposConfig.each{repo ->
|
||||||
echo "Map Element ${repo.key}: ${repo.value.gitRepo} = ${repo.value.testValue}"
|
def name = repo.key
|
||||||
|
echo "Map Element ${name}: ${repo.value.gitRepo} = ${repo.value.testValue}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user