That's a problem with the Groovy closure resolve strategy (http://docs.groovy-lang.org/latest/html/gapi/groovy/lang/Closure.html#getResolveStrategy%28%29). The each method uses the default resolve strategy "owner first" (http://docs.groovy-lang.org/latest/html/gapi/groovy/lang/Closure.html#OWNER_FIRST) and thus picks the permission method from the freeStyleJob closure instead of the authorization closure. So avoiding each by using a for loop fixes the problem.

The warnings will go away when the deprecated permission methods on the job level have been removed.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to