From cb17d29bf04a8c6c4de47353d60d05de6be37366 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Thu, 3 Jan 2019 11:38:26 +0100 Subject: [PATCH] [Jenkins] Use new syntax for warnings plugin. https://github.com/jenkinsci/warnings-ng-plugin/blob/master/doc/Documentation.md --- Jenkinsfile | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cd3e054589d..a0964c88ba5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -99,8 +99,8 @@ pipeline { build { target="doc" } // TODO: .*DOT_GRAPH_MAX_NODES. // .*potential recursive class relation.* - recordIssues tools: [[pattern: 'build/DoxygenWarnings.log', - tool: [$class: 'Doxygen']]], + + recordIssues tools: [doxygen(pattern: 'build/DoxygenWarnings.log')], unstableTotalAll: 24 dir('build/docs') { stash(name: 'doxygen') } publishHTML(target: [allowMissing: false, alwaysLinkToLastBuild: true, @@ -125,8 +125,7 @@ pipeline { publishReports { } recordIssues enabledForFailure: true, filters: [ excludeFile('.*qrc_icons\\.cpp.*'), excludeFile('.*QVTKWidget.*')], - tools: [[pattern: 'build/build.log', name: 'GCC', - tool: [$class: 'GnuMakeGcc']]], + tools: [gcc4(name: 'GCC', pattern: 'build/build.log')], unstableTotalAll: 19 } success { @@ -275,8 +274,7 @@ pipeline { recordIssues enabledForFailure: true, filters: [ excludeFile('.*\\.conan.*'), excludeFile('.*ThirdParty.*'), excludeFile('.*thread.hpp')], - tools: [[pattern: 'build/build.log', name: 'MSVC', - tool: [$class: 'MsBuild']]], + tools: [msBuild(name: 'MSVC', pattern: 'build/build.log')], unstableTotalAll: 4 } success { @@ -320,9 +318,8 @@ pipeline { publishReports { } recordIssues enabledForFailure: true, filters: [ excludeFile('.*qrc_icons\\.cpp.*'), excludeFile('.*QVTKWidget.*')], - tools: [[pattern: 'build/build.log', name: 'Clang (macOS)', - id: 'clang-mac', tool: [$class: 'Clang']]], - unstableTotalAll: 3 + tools: [clang(name: 'Clang (macOS)', pattern: 'build/build.log', + id: 'clang-mac')], unstableTotalAll: 3 } success { archiveArtifacts 'build/*.tar.gz,build/*.dmg,build/conaninfo.txt' @@ -504,7 +501,7 @@ pipeline { always { recordIssues enabledForFailure : true, filters: [includeCategory('clang-analyzer.*')], - tools: [[name:'Clang (StaticAnalyzer)', tool:[$class:'Clang']]] + tools: [clang(name: 'Clang (StaticAnalyzer)')] } } } -- GitLab