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/c14a6b45-0430-490a-a7ae-a22e06e11f47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to