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.

          [JENKINS-37398] unclassified field groovy.util.Node xxx

          Jesse Glick added a comment -

          Last I checked XmlParser was not supported, and it may be hard to support.

          Jesse Glick added a comment - Last I checked XmlParser was not supported, and it may be hard to support.

          Jesse Glick added a comment -

          (This is probably a duplicate too.)

          Jesse Glick added a comment - (This is probably a duplicate too.)

          Daniel Sobral added a comment -

          It is working for me, as long as I use map syntax instead of property syntax, fwiw.

          Daniel Sobral added a comment - It is working for me, as long as I use map syntax instead of property syntax, fwiw.

            jglick Jesse Glick
            dcsobral Daniel Sobral
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: