This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      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.

            Assignee:
            Jesse Glick
            Reporter:
            Daniel Sobral
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: