I've tried a couple different things:
- Using unique names for the different output .xml files (instead of both 
`junit.xml`)
- Running tests serially
- Getting the tests to complete in the opposite order

However, no matter what I've tried, only the first node to call 
`JUnitResultArchiver` has any bearing on the final build status or in the 
UI.

Should I file this as a bug, or do others have suggestions?

On Friday, March 18, 2016 at 10:11:39 PM UTC-4, Logan Glickfield wrote:
>
> Oops. s/parallelNode/node (forgot to clean up 2nd instance in sample code).
>
> On Friday, March 18, 2016 at 10:03:30 PM UTC-4, Logan Glickfield wrote:
>>
>> I'm having trouble with a pipeline I'm trying to set up. The build is 
>> simultaneously succeeding but having failing tests.
>>
>> I have 2 nodes configured in parallel that run some python tests and dump 
>> the results to xml. I then call the JUnitResultArchiver step in each node.
>>
>> The first node to finish (about 20 minutes) has all passing tests. The 
>> second node finishes later (about 45 minutes) with a couple failing tests. 
>> In the build folder, if I look at junitResult.xml, it has all the tests 
>> from both nodes including the failing tests. But if I look at build.xml, 
>> there is one TestResultAction and it only contains information about the 
>> tests from the first node and thus indicates success.
>>
>> Here's how this looks in the UI:
>>
>>
>> <https://lh3.googleusercontent.com/-HPfAwjRnrZs/VuyvwxgG_NI/AAAAAAAAADQ/q1pL7mo0VmoqFZgWw3h8oh5VGga_XLN9Q/s1600/test%2Bpipeline%2B%2B97%2B%2BJenkins%2B.png>
>>  
>> <https://lh3.googleusercontent.com/-Tyn7JEV43cs/VuywajYtZhI/AAAAAAAAADY/7LNxP-PVnfcd1wzVV2wp99BVVpP6a5Ozw/s1600/test%2Bpipeline%2B%2B97%2BTest%2BResults%2B%2BJenkins%2B.png>
>>
>> I'm on Jenkins 1.652 and JunitPlugin 1.11. Any ideas what may be wrong or 
>> how I can further debug?
>>
>> Thanks for the help!
>>
>> -Logan
>>
>> P.S. Stripped down representation of my pipeline's flow below:
>>
>> stage 'Setup'
>> node {
>>     git...
>>     stash 'project'
>> }
>>
>> stage 'Tests'
>> tests = [:]
>> tests['Basic Tests'] = node {
>>     unstash 'project'
>>     sh 'py.test -v --junitxml=reports/junit.xml || true'
>>     step([$class: 'JUnitResultArchiver', testResults: 'reports/junit.xml'
>> ])
>> }
>> tests['System Tests'] = parallelNode {
>>     unstash 'project'
>>     sh 'py.test -v --no-small --no-medium --large 
>> --junitxml=reports/junit.xml || true'
>>     step([$class: 'JUnitResultArchiver', testResults: 'reports/junit.xml'
>> ])
>> }
>> parallel tests
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" 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-users/7fd846aa-a77b-4028-978a-bb0864d4263e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to