Pipeline Plugin: Multiple steps for ArtifactArchiver and JUnitResultArchiver in one pipeline possible?

264 views
Skip to first unread message

Lars Meynberg

unread,
May 18, 2016, 9:14:55 AM5/18/16
to Jenkins Users
We're trying to switch our Build Pipeline from the classic way (Multiple Jobs) to the new pipeline-as-code approach.
In the past we've chained some jobs together. We had some parallel test jobs and each test has produced its own test results. These results were copied to the master job and there aggregated and displayed.

What is the best way to do this in a "real" pipeline? Can a call a JUnitResultArchiver step in each parallel Stage which has test results and the results will be combined or does it only displays the last recorded result? Do I have to do a similar aggregate task and call JUnitResultArchiver only once?

I can imagine some of you have already resolved this issue as its a common one I would think.

Lars Meynberg

unread,
May 20, 2016, 3:12:38 AM5/20/16
to Jenkins Users
Ok it is possible to call JUnitResultArchiver more than once and all recorded test results will be integrated. But to capture all results accordingly you have to be careful about when to do it. Especially if you're working with try/catch/finally. On some catches I was not at the same node workspace anymore even all was in the same node step.

ferruccio bongianni

unread,
Feb 9, 2017, 8:58:25 AM2/9/17
to Jenkins Users
Hello,
I'm having problems with collecting results from jobs run in parallel (as in pipeline 'parallel') as not all the test results gets collected; Can you explain what can go wrong and how to fix it?
Thanks
Ferruccio
Reply all
Reply to author
Forward
0 new messages