The XML file is created from scratch when you save/apply from the UI with XStream so there is no easy way to do this.
On Wednesday, March 9, 2016 at 6:01:59 PM UTC, amaterasu48 wrote: > > I have developed a client application that lets me edit the Jenkins job > config XML file and push the change to the Jenkins server. It works great > and I'm happy that Jenkins provides me with APIs that lets me do something > like this. > > Now here is problem that I would like to solve. > > When I have XML comments and upload the change to the Jenkins server, it > retains the XML comments. When I download the config XML, it's there. But > when I access the job from the UI and hit save button, Jenkins removes the > XML comment. It would be really great if I could retain the XML comment > even on save from the UI. > > -- 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/113ff50f-7796-430b-9d32-c159440579d0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
