-
Bug
-
Resolution: Unresolved
-
Minor
-
None
I'm trying to use one of Groovy's XML libraries, but I keep stumbling on errors. XMLSlurper gives me an Object getProperty String which I'm not supposed to accept. When I use XMLParser, I get this:
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified field groovy.util.Node testcase
This one does not appear on approval list. It comes from this piece of code:
def result = new XmlParser().parseText(xml) result.testcase.'*'.findAll { node -> node.name() == 'failure' || node.name() == 'error' }*.text()
Using result['testcase'] gets me past this error, up to '*', which I haven't tried using the map syntax for yet.
Still, it doesn't appear on the security list for approval/denial.
Last I checked XmlParser was not supported, and it may be hard to support.