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:
parent
9fa0066916
commit
1e1eda5575
13
ci/Jenkinsfile
vendored
13
ci/Jenkinsfile
vendored
@ -55,10 +55,15 @@ fi
|
|||||||
"""
|
"""
|
||||||
withCredentials([string(credentialsId: 'GERRITHTTP',
|
withCredentials([string(credentialsId: 'GERRITHTTP',
|
||||||
variable: 'GERRITHTTP')]) {
|
variable: 'GERRITHTTP')]) {
|
||||||
sh '''\
|
sh """\
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
if [ -f pylint_results.txt ] ; then
|
||||||
/home/jenkins/tools2/bin/pylint2gerrit
|
/home/jenkins/tools2/bin/pylint2gerrit
|
||||||
'''
|
mv pylint_results.txt pylint-${pyver}.txt
|
||||||
|
else
|
||||||
|
touch pylint-${pyver}.txt
|
||||||
|
fi
|
||||||
|
"""
|
||||||
} // credentials
|
} // credentials
|
||||||
|
|
||||||
echo "pylint result: $res"
|
echo "pylint result: $res"
|
||||||
@ -76,10 +81,10 @@ fi
|
|||||||
verifyStatusReporter: 'jenkins',
|
verifyStatusReporter: 'jenkins',
|
||||||
verifyStatusRerun: '!recheck'])
|
verifyStatusRerun: '!recheck'])
|
||||||
archiveArtifacts([allowEmptyArchive: true,
|
archiveArtifacts([allowEmptyArchive: true,
|
||||||
artifacts: 'pylint_*.txt'])
|
artifacts: 'pylint-*.txt'])
|
||||||
recordIssues([enabledForFailure: true,
|
recordIssues([enabledForFailure: true,
|
||||||
ignoreQualityGate: 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,
|
unhealthy: 2,
|
||||||
healthy: 1,
|
healthy: 1,
|
||||||
failedTotalAll: 1])
|
failedTotalAll: 1])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user