MissingPropertyException for "it" in closures
shrtminded opened this issue · 8 comments
shrtminded commented
The code below throws a MissingPropertyException when using it inside of closures after version 1.5.
Example 1:
log = ''
(1..10).each{log += it}
Example 2:
list =["foo", "bar"]
index = list.findIndexOf{ it == "foo"}
jglick commented
Already filed as JENKINS-33468.
dusanskopik commented
Hi guys, Is there any fundamental issue preventing fixing this? Any plan to fix it in near future?
Thanks.
frezbo commented
I cannot use Jenkinsfile from SCM and I am blocked due to this
jglick commented
Is there any fundamental issue preventing fixing this?
Unknown until someone tries to fix it.
Any plan to fix it in near future?
Not currently. Feel free to upvote the JIRA issue or file a PR.
I am blocked due to this
Unlikely. There is a trivial workaround, as described in JIRA.
dwnusbaum commented
Going by Git tags, looked like the fix for this was released in version 1.14.