> On 02.09.2016, at 14:45, [email protected] wrote:
> 
> ok, great thanks it now have a scope of operation, that was not clear with 
> the error message (at first I was under the impression I needed to give it an 
> argument of some sort:

Well, you do. It's just that you place the block outside the parentheses to 
make it look nicer.

http://groovy-lang.org/style-guide.html#_omitting_parentheses

> When a closure is the last parameter of a method call, like when using 
> Groovy’s each{} iteration mechanism, you can put the closure outside the 
> closing parentheses, and even omit the parentheses:

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" 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-users/E24ADEDB-4A54-4658-B3F8-F819567564CA%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to