Hi all,
Is there any way to parse JSON string in the Jenkinsfile groovy script to
meet Jenkins security requirements and avoid the famous exception =>
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException:
unclassified method groovy.json.JsonSlurper parse java.lang.String
Just want to do :
def jsonStream = readFile('jsonFile')
echo 'Version ' + jsonStream.version
Thanks for your answers or pointing me out right articles/guides
Sami
--
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/b0412d4b-c461-43ee-921d-277495be6760%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.