-
Bug
-
Resolution: Fixed
-
Major
-
-
Pipeline - July/August
I have a custom class which I am using inside of some groovy functions with a list of custom methods. When I use that custom class inside of a script needed to be approved by script security it is being transformed differently than expected.
When I try to do a for loop through an array and do `i++` it is being translated as i.next() instead of adding 1 and then when I am calling the creator method `def $ITEM` it is being created as a hashmap. Neither of those methods exists inside of my custom class so it is throwing errors like `No signature of method X.next()` and `unclassified new X java.util.LinkedHashMap`
I would either like to get more visibility about hot the translation is happening or potentially have other default method calls.
Let me know if I can provide more context here.
- is duplicated by
-
JENKINS-46194 Numeric increment operator does not work in a closure in an sandbox
-
- Closed
-
- links to
[JENKINS-45776] Script Security translates some groovy functions incorrectly/not as expected
Assignee | New: Andrew Bayer [ abayer ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Remote Link | New: This issue links to "PR #36 (Web Link)" [ 17323 ] |
Labels | New: cloudbees-internal-pipeline |
Sprint | New: Pipeline - July/August [ 371 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |
Link |
New:
This issue is duplicated by |
Remote Link | New: This issue links to "CloudBees Internal CD-214 (Web Link)" [ 19066 ] |