Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit e65f397

Browse files
Chad Doughertyapavlo
authored andcommitted
fix references to the test collection directory and add the xunit test
processing in post
1 parent 28b7f03 commit e65f397

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Jenkinsfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pipeline {
88
agent {
99
docker {
1010
image 'ubuntu:xenial'
11-
args "-v /var/lib/jenkins/jobs/crd/jobs/${env.JOB_BASE_NAME}/builds/${env.BUILD_ID}:/job"
11+
args '-v ${WORKSPACE}/../builds/${BUILD_ID}:/job:rw'
1212
}
1313
}
1414
steps {
@@ -17,8 +17,6 @@ pipeline {
1717
sh 'mkdir build'
1818
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=False -DUSE_SANITIZER=Address .. && make -j4'
1919
sh 'cd build && make check -j4 || true'
20-
sh 'ls /job'
21-
sh 'mkdir /job/TESTING'
2220
sh 'cd build && cp -pr test /job/'
2321
sh 'cd build && make benchmark -j4'
2422
sh 'cd build && make install'
@@ -211,4 +209,13 @@ pipeline {
211209
}
212210
}
213211
}
212+
213+
// Process test results from the first build stage
214+
post {
215+
always {
216+
dir("${WORKSPACE}/../builds/${BUILD_ID}/results") {
217+
step([$class: 'XUnitBuilder', testTimeMargin: '3000', thresholdMode: 1, thresholds: [[$class: 'FailedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: ''], [$class: 'SkippedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: '']], tools: [[$class: 'GoogleTestType', deleteOutputFiles: true, failIfNotNew: true, pattern: 'test/*_test.xml', skipNoTestFiles: false, stopProcessingIfError: true]]])
218+
}
219+
}
220+
}
214221
}

0 commit comments

Comments
 (0)