diff --git a/vars/test.groovy b/vars/test.groovy index 03cbcba..d36a8dc 100644 --- a/vars/test.groovy +++ b/vars/test.groovy @@ -6,10 +6,10 @@ def call(body) { def reposConfig = [:] config.reposConfig.each{repo -> - reposConfig = [ - gitBranch: repo.value.gitBranch, - gitRepo: repo.value.gitRepo, - gitCreds: repo.value.gitCreds + reposConfig[repo.key] = [ + gitBranch: repo.value.gitBranch, + gitRepo: repo.value.gitRepo, + gitCreds: repo.value.gitCreds ] }