Only really needed to get to key and value of Map$Entry: https://github.com/jenkinsci/script-security-plugin/pull/44
I am also looking at putting this in a plugin - haven't quite worked out how to load a function (vs a class) into the global scope yet. My attempt so far: https://github.com/michaelneale/jenkinsfile/blob/topic/asplugin/src/main/java/org/jenkinsci/plugins/simplebuild/SimpleBuildDSL.java On Friday, February 5, 2016 at 9:10:55 AM UTC+11, Michael Neale wrote: > > that was a copy paste error, I did use the correct map literal syntax of > ":". > > As Bobby said, map does work, however you can't really access any of it > without whitelisting (I will work on that, should be fine). > > On Friday, February 5, 2016 at 1:41:21 AM UTC+11, Jesse Glick wrote: >> >> Try `[k: v]` not `[k = v]`, and file bugs in `script-security-plugin` >> (label `workflow`) as needed. >> > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/5509b634-394a-4fbd-8345-9f7c07ae8e35%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
