Skip to content

Commit f3c6f2f

Browse files
authored
[vs image] Add support for multiple test reports to buildimage-vs jobs (sonic-net#80)
Changing JUnit post API to pick up all test reports generated. A change was done earlier to generate multiple test reports in pr sonic-net#79 signed-off-by: Tamer Ahmed <[email protected]>
1 parent bca348a commit f3c6f2f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

jenkins/vs/buildimage-vs-image-201911-test/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pipeline {
6262
post {
6363

6464
always {
65-
junit(allowEmptyResults: true, keepLongStdio: true, testResults: 'sonic-mgmt/tests/tr.xml')
65+
junit(allowEmptyResults: true, keepLongStdio: true, testResults: 'sonic-mgmt/tests/tr*.xml')
6666
}
6767

6868
fixed {

jenkins/vs/buildimage-vs-image-pr/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ mv target ../
7171
post {
7272

7373
always {
74-
junit(allowEmptyResults: true, keepLongStdio: true, testResults: 'sonic-mgmt/tests/tr.xml')
74+
junit(allowEmptyResults: true, keepLongStdio: true, testResults: 'sonic-mgmt/tests/tr*.xml')
7575
archiveArtifacts(artifacts: 'target/**')
7676
}
7777
}

jenkins/vs/buildimage-vs-image/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ mv target ../
7575
post {
7676

7777
always {
78-
junit(allowEmptyResults: true, keepLongStdio: true, testResults: 'sonic-mgmt/tests/tr.xml')
78+
junit(allowEmptyResults: true, keepLongStdio: true, testResults: 'sonic-mgmt/tests/tr*.xml')
7979
archiveArtifacts(artifacts: 'target/**')
8080
}
8181

0 commit comments

Comments
 (0)