This is how it's implemented in core https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/AbstractItem.java#L602
You should be able to implement something similar for your own plugin. /B On Mon, Dec 1, 2014 at 5:56 PM, James Richard <[email protected]> wrote: > Hey Everyone, > I was wondering if there was a way to expose the global xml file of a > plugin so that a User could update the xml using Rest Api's? > > Referencing https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API, > I have found out how to update Job config.xml files but I want to also be > able to update the global xml file for my plugin (as a Jenkins > administrator) using a remote api. Is there a way to do this? Any > suggestions? > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" 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-dev/388b7bf9-ef24-4ab8-8444-1e619770a54a%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/388b7bf9-ef24-4ab8-8444-1e619770a54a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Robert Sandell *Software Engineer* *CloudBees Inc.* -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" 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-dev/CALzHZS3_9xUghNVU9NXO4VntAc2YtYN-tNdQVxREg7v0%3D_QaKA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
