Update libfuzzer-pipeline.groovy

This commit is contained in:
Mike Aizatsky 2016-10-11 18:56:01 -07:00 committed by GitHub
parent 010d906631
commit e75e1da132
1 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ def call(body) {
// Run each of resulting fuzzers.
dir ('out') {
def resultsDir = "$workspace/test-results/"
def resultsDir = "$workspace/test-results"
sh "rm -rf $resultsDir"
sh "mkdir -p $resultsDir"
stage("running fuzzers") {
@ -110,11 +110,11 @@ def call(body) {
}
testReport += "/>";
writeFile file:"$resultsDir/TEST-${sanitizer}.xml", text:testReport
writeFile file:"$resultsDir/${sanitizer}.xml", text:testReport
}
}
sh "ls -al $resultsDir/"
step([$class: 'JUnitResultArchiver', testResults: '${resultsDir}*.xml'])
step([$class: 'JUnitResultArchiver', testResults: '${resultsDir}/*.xml'])
echo "Tested $fuzzersFound fuzzer"
if (!fuzzersFound) {
error "no fuzzers found";