jenkins-libraries/vars/test.groovy
2022-03-04 09:37:25 -06:00

21 lines
505 B
Groovy

def call(body) {
def config = [:]
body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = config
body ()
def reposConfig = [:]
config.reposConfig.each{repo ->
reposConfig[repo.key] = {
String gitBranch = repo.value.gitBranch,
String gitRepo = repo.value.gitRepo,
String gitCreds = repo.value.gitCreds
}
}
reposConfig.each{repo ->
echo "Map Element ${repo.key}: ${repo.value.gitRepo}"
}
}