Groovy web console

subscribe to the feed Subscribe
to this
site

How to loop through groovy map

Published 1 month ago by mc with tags Jenkins
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def params = ['action':'someAction', 'anotherParameter':'bar']
for ( entry in params ) {
    println "key = ${entry.key}, \t\t\t\t value = ${entry.value}"
}