hudson.model.JenkinsLocationConfiguration.get().getAdminAddress()
Hi,
Thanks for the response. I gave this a shot. It results in the following error:
groovy.lang.MissingPropertyException: No such property: hudson for class: groovy.lang.Binding
But I think the fix is to change hudson to jenkins. So I tried this and get the following results:
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod jenkins.model.JenkinsLocationConfiguration get
So I think they is still something missing. Not sure how best to proceed. Is it not so common to access the default admin email address in a Jenkinsfiles?
--
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 jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2014b1d4-e910-4f06-b26f-8bbb5a56b92e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CADhq2b7yL7Q%2BiJ01n3Bkk-HGXRwJGDPRsXYkBZ13PxwM1TN1rQ%40mail.gmail.com.