From 55763c24cd70eddf94f0450a4554137e8533a9ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Pedersen?= Date: Tue, 26 Mar 2019 09:10:05 +0100 Subject: [PATCH] Switch to warnings-ng plugin The warnings plugin has been deprecated and removed upstream. Change-Id: Idbb992f4593f8f3d928526141af19b357262a92b Reviewed-on: https://forge.frm2.tum.de/review/20226 Reviewed-by: Bjoern Pedersen Tested-by: Bjoern Pedersen --- ci/Jenkinsfile | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index 0b18775..5b0eaa4 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -75,18 +75,16 @@ fi verifyStatusName: 'pylint-'+pyver, verifyStatusReporter: 'jenkins', verifyStatusRerun: '!recheck']) - warnings([ canComputeNew: false, - canRunOnFailed: true, - defaultEncoding: '', - excludePattern: '', - healthy: '', - includePattern: '', - messagesPattern: '', - parserConfigurations: [[parserName: 'PyLint', pattern: 'pylint_*.txt']], - unHealthy: '', - failedTotalAll: '0', - unstableTotalAll: '1' - ]) + archiveArtifacts([allowEmptyArchive: true, + artifacts: 'pylint_*.txt']) + recordIssues([enabledForFailure: true, + ignoreQualityGate: true, + tools: [pyLint(id: idtag, name: "Pylint $info", pattern: 'pylint_*.txt')], + unhealthy: 2, + healthy: 1, + failedTotalAll: 1]) + + if (status == 'FAILURE') { throw new Exception('Failure in pylint with ' + pyver) }