Impossibility to iterate over a Map using Groovy within Jenkins Pipeline

后端 未结 2 1991
暗喜
暗喜 2020-12-29 23:49

We are trying to iterate over a Map, but without any success. We reduced our issue to this minimal example:

def map = [
           \'monday\': \         


        
2条回答
  •  Happy的楠姐
    2020-12-30 00:44

    Or much simpler

    for (def key in map.keySet()) {
      println "key = ${key}, value = ${map[key]}"
    }
    

提交回复
热议问题