I want to compare the tests results of two jobs in jenkins. in my case these jobs are not consecutive so the usual tests resutls view of the job is not good enough.
Is there any way to get this view? or is it possible write such plugin myself?
In the left menu panel an link under the name "Compare environment" should show up. There the user has the option to compare the information recorded about two builds. This could be useful to figure out why the same job builds differently on different machines.
The JUnit plugin provides a publisher that consumes XML test reports generated during the builds and provides some graphical visualization of the historical test results (see JUnit graph for a sample) as well as a web UI for viewing test reports, tracking failures, and so on.
You get to the Test Result page by clicking a build link on the Status or History page of your Jenkins project, or by clicking Test Result in the menu on the left. Click the image to enlarge it. At the top of the page, Jenkins displays summary information about the executed tests and their total execution time.
I have a similar, although not exactly the same setup. In your circumstances what I do would work like this: job A stores its test results (say, junit xml's) keyed by its build id and kicks off job C via the Parameterized Trigger Plugin passing to it the location of the test results. Job C then can either simply publish those tests or do some additional processing on them. Job B does the same thing as job A as far as its tests and kicking off of job C are concerned. Then all of your results are aggregated in job C.
The additional processing that job C does may include storing the results of test A in a temporary location and then processing them later together with the results of job B. This is not automatic, but still much easier than writing a whole new plugin. Also you can customize it in any way you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With