Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possible to compare tests results from two non-consecutive jobs in jenkins?

Tags:

junit

jenkins

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?

like image 852
oshai Avatar asked Dec 19 '11 13:12

oshai


People also ask

How do I compare two Jenkins jobs?

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.

Which Jenkins plugin helps to process test reports?

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.

How do I read Jenkins results?

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.


1 Answers

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.

like image 200
malenkiy_scot Avatar answered Sep 21 '22 17:09

malenkiy_scot