Pipeline: parallel and produced artifacts

24 views
Skip to first unread message

Manuel Vacelet

unread,
Jul 27, 2016, 4:57:28 AM7/27/16
to Jenkins Users
Hi there,

I'm using Jenkins 2.7.1 with Pipeline 2.2.
My Jenkinsfile uses parallel to execute 2 type of tests but I don't have an aggregation of test results. I only get one of them:

stage "Test"
parallel 'rest-c6-php53-httpd22-mysql51': {
    node('docker') {
            checkout scm
            sh "docker run --rm -v "+pwd()+":/usr/share/tuleap -v "+pwd()+":/output enalean/tuleap-test-rest:c6-php53-httpd22-mysql51"
            step([$class: 'JUnitResultArchiver', testResults: 'rest_tests.xml'])
    }
}, 'rest-c6-php56-httpd24-mysql56': {
    node('docker') {
        checkout scm
        sh "docker run --rm -v "+pwd()+":/usr/share/tuleap -v "+pwd()+":/output enalean/tuleap-test-rest:c6-php56-httpd24-mysql56"
        step([$class: 'JUnitResultArchiver', testResults: 'rest_tests.xml'])
    }
}

In the test result I only get 254 tests, whereas it's actually 512 tests that are executed (254 in each node).

Is that expected ?

Note: if I rename on of the junit files (rest_test.xml) I can see the 512 tests.
Reply all
Reply to author
Forward
0 new messages