Ensure pylint results file exists and has version

Change-Id: I67df75eb477dfc8e0f515a35acba8a349743e03f
Reviewed-on: https://forge.frm2.tum.de/review/20228
Reviewed-by: Bjoern Pedersen <bjoern.pedersen@frm2.tum.de>
Tested-by: Bjoern Pedersen <bjoern.pedersen@frm2.tum.de>
This commit is contained in:
Björn Pedersen 2019-03-26 09:26:43 +01:00 committed by Bjoern Pedersen
parent 9fa0066916
commit 1e1eda5575

13
ci/Jenkinsfile vendored
View File

@ -55,10 +55,15 @@ fi
"""
withCredentials([string(credentialsId: 'GERRITHTTP',
variable: 'GERRITHTTP')]) {
sh '''\
sh """\
#!/bin/bash
if [ -f pylint_results.txt ] ; then
/home/jenkins/tools2/bin/pylint2gerrit
'''
mv pylint_results.txt pylint-${pyver}.txt
else
touch pylint-${pyver}.txt
fi
"""
} // credentials
echo "pylint result: $res"
@ -76,10 +81,10 @@ fi
verifyStatusReporter: 'jenkins',
verifyStatusRerun: '!recheck'])
archiveArtifacts([allowEmptyArchive: true,
artifacts: 'pylint_*.txt'])
artifacts: 'pylint-*.txt'])
recordIssues([enabledForFailure: true,
ignoreQualityGate: true,
tools: [pyLint(id: idtag, name: "Pylint $info", pattern: 'pylint_*.txt')],
tools: [pyLint(id: 'pylint'+$pyver, name: "Pylint $pyver", pattern: "pylint-${pyver}.txt")],
unhealthy: 2,
healthy: 1,
failedTotalAll: 1])