From 53fe3f39b95b8bf40a69dec7191232dd4c893227 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Tue, 19 Jan 2016 17:59:29 +0100 Subject: [PATCH] Added log parser. --- scripts/jenkins/gcc.groovy | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/jenkins/gcc.groovy b/scripts/jenkins/gcc.groovy index c984fc35597..009ad0d7d1c 100644 --- a/scripts/jenkins/gcc.groovy +++ b/scripts/jenkins/gcc.groovy @@ -12,7 +12,8 @@ node('docker') build 'build', '', 'package tests ctest' } - publishTestReports 'build/Testing/**/*.xml', 'build/Tests/testrunner.xml' + publishTestReports 'build/Testing/**/*.xml', 'build/Tests/testrunner.xml', + 'ogs/scripts/jenkins/clang-log-parser.rules' // archive 'build*/*.tar.gz' } @@ -28,7 +29,7 @@ def build(buildDir, cmakeOptions, target) { sh "cd ${buildDir} && make -j 4 ${target}" } -def publishTestReports(ctestPattern, gtestPattern) { +def publishTestReports(ctestPattern, gtestPattern, parseRulefile) { step([$class: 'XUnitPublisher', testTimeMargin: '3000', thresholdMode: 1, thresholds: [ [$class: 'FailedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: ''], @@ -37,4 +38,7 @@ def publishTestReports(ctestPattern, gtestPattern) { [$class: 'CTestType', deleteOutputFiles: true, failIfNotNew: true, pattern: "${ctestPattern}", skipNoTestFiles: false, stopProcessingIfError: true], [$class: 'GoogleTestType', deleteOutputFiles: true, failIfNotNew: true, pattern: "${gtestPattern}", skipNoTestFiles: false, stopProcessingIfError: true]] ]) + + step([$class: 'LogParserPublisher', failBuildOnError: true, unstableOnWarning: true, + projectRulePath: "${parseRulefile}", useProjectRule: true]) } -- GitLab