From 685d0ff887935be4f5dbbb23fdbaad65cd1324b2 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Fri, 21 Sep 2018 12:52:31 +0200
Subject: [PATCH] [Jenkins] Added macOS Clang warning parsing.

---
 Jenkinsfile | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index a5ffd0fc567..dad7008e567 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -120,7 +120,7 @@ pipeline {
                 excludeFile('.*qrc_icons\\.cpp.*'), excludeFile('.*QVTKWidget.*')],
                 tools: [[pattern: 'build/build.log', name: 'GCC',
                   tool: [$class: 'GnuMakeGcc']]],
-                unstableTotalAll: 24
+                unstableTotalAll: 19
             }
             success {
               dir('build/docs') { stash(name: 'doxygen') }
@@ -294,15 +294,15 @@ pipeline {
                   '-DCMAKE_OSX_DEPLOYMENT_TARGET="10.13" '
               }
               build {
-                target = 'tests'
+                log = "build.log"
                 cmd_args = '-j $(( `sysctl -n hw.ncpu` - 2 ))'
               }
               build {
-                target = 'ctest'
+                target = 'tests'
                 cmd_args = '-j $(( `sysctl -n hw.ncpu` - 2 ))'
               }
               build {
-                target = 'package'
+                target = 'ctest'
                 cmd_args = '-j $(( `sysctl -n hw.ncpu` - 2 ))'
               }
             }
@@ -310,6 +310,11 @@ pipeline {
           post {
             always {
               publishReports { }
+              recordIssues enabledForFailure: true, filters: [
+                excludeFile('.*qrc_icons\\.cpp.*'), excludeFile('.*QVTKWidget.*')],
+                tools: [[pattern: 'build/build.log', name: 'Clang (macOS)',
+                  tool: [$class: 'Clang']]],
+                unstableTotalAll: 3
             }
             success {
               archiveArtifacts 'build/*.tar.gz,build/*.dmg,build/conaninfo.txt'
-- 
GitLab