There's a very early version of pluggable storage available that you can use with a SQL backend instead of XML https://github.com/jenkinsci/junit-plugin/releases/tag/junit-1.32
https://github.com/jenkinsci/junit-plugin/issues/142 The API may change in incompatible ways, and it's not complete yet. But might be something to look at Thanks Tim On Tue, 25 Aug 2020 at 20:24, Ullrich Hafner <[email protected]> wrote: > This should be feasible. Here is the part of the code that fills in the > results: > > https://github.com/jenkinsci/junit-plugin/blob/master/src/main/java/hudson/tasks/junit/JUnitResultArchiver.java#L172 > > > Am 25.08.2020 um 18:48 schrieb Michael Carter <[email protected]>: > > Basically I have a bunch of SQL statements in my plugin I was going to > write to a junit xml file then use a junit post step for uploading... but > then thought... Can I some how combine them? > > Is there a method I can call that adds Junit Tests cases, that I can call > for each sql so I can report the "test" as failed/success based on it's > execution? > > Or is still the best way to have my command generate an xml file then feed > into the junit command? > > -- > 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/d2284677-183a-4e52-80da-0a16b07b269en%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/d2284677-183a-4e52-80da-0a16b07b269en%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- > 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/301B7278-B410-4C25-A52F-87836F483380%40gmail.com > <https://groups.google.com/d/msgid/jenkinsci-dev/301B7278-B410-4C25-A52F-87836F483380%40gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/CAH-3BidC%3DhAcv8SCSDzBLY5c_dvETnpF3PitSXidEWoqe%2BS43Q%40mail.gmail.com.
