config.xml schema

297 views
Skip to first unread message

memoe

unread,
Mar 1, 2016, 8:40:05 PM3/1/16
to Jenkins Developers

I've seen this asked several times but I've never seen an answer.  Is there a schema for the config.xml used for the createItem call in the REST API?

Michael Neale

unread,
Mar 1, 2016, 11:35:56 PM3/1/16
to Jenkins Developers
No I don't believe so. Keep in mind other plugins can add things to sections, and it is done with xstream, I am not sure what a DTD/xsd would quite look like. 

Jesse Glick

unread,
Mar 2, 2016, 6:26:28 AM3/2/16
to Jenkins Dev

Stapler includes a schema generator, but last I looked it did not really work and would need to be rewritten.

memoe

unread,
Mar 2, 2016, 12:58:13 PM3/2/16
to Jenkins Developers
Thanks for the replies.  I could take a "full" XML example (maybe by selecting all the options and using the config.xml from that, but doubt that's even possible to do) and generate a schema from that.  Unfortunately it wouldn't tell me which elements are required, optional, etc which a nicely written schema would do.

Michael Neale

unread,
Mar 6, 2016, 4:24:34 PM3/6/16
to Jenkins Developers
a heavily setup jenkins with lots of plugins and a job that uses them may yield an informative config.xml, but won't be exhaustive!
Reply all
Reply to author
Forward
0 new messages