I was trying to parse and XML file with XmlSlurper like described here
(http://groovy-lang.org/processing-xml.html)
def text = '''
<list>
<technology>
<name>Groovy</name>
</technology>
</list>
'''
def list = new XmlSlurper().parseText(text)
println list.technology.name.text()
Using a GPath expression like this list.technology.name.text() works fine
but requires an admin to allow "method groovy.lang.GroovyObject getProperty
java.lang.String" which the script security plugin recommends against
("Approving this signature may introduce a security vulnerability! You are
advised to deny it."). Since I am not the owner of the Jenkins instance, I
am not sure I can convince them this is OK to approve.
Is there a way to write the code such that it does not depend on
GroovyObject.getProperty being permitted? Or is there someway to configure
Jenkins so that this can work?
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/648ea072-7465-4bfb-8254-ea870e1801b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.