Mercurial > kallithea
changeset 6551:bc1b11a5d548
jenkinsfile: catch the correct exception if jenkins plugin is not available
author | domruf <dominikruf@gmail.com> |
---|---|
date | Wed, 15 Mar 2017 12:36:43 +0100 |
parents | ad275fcc5a90 |
children | 15a12f2a47b4 |
files | Jenkinsfile |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Jenkinsfile Thu Mar 23 22:20:35 2017 +0100 +++ b/Jenkinsfile Wed Mar 15 12:36:43 2017 +0100 @@ -55,7 +55,7 @@ archiveArtifacts 'pylint.out' try { step([$class: 'WarningsPublisher', canComputeNew: false, canResolveRelativePaths: false, defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', parserConfigurations: [[parserName: 'PyLint', pattern: 'pylint.out']], unHealthy: '']) - } catch (UnsupportedOperationException exc) { + } catch (java.lang.IllegalArgumentException exc) { echo "You need to install the 'Warnings Plug-in' to display the pylint report." currentBuild.result = 'UNSTABLE' echo "Caught: ${exc}" @@ -79,7 +79,7 @@ junit 'pytest_sqlite.xml' try { step([$class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: 'coverage.xml', failNoReports: false, failUnhealthy: false, failUnstable: false, maxNumberOfBuilds: 0, onlyStable: false, zoomCoverageChart: false]) - } catch (UnsupportedOperationException exc) { + } catch (java.lang.IllegalArgumentException exc) { echo "You need to install the pipeline compatible 'CoberturaPublisher Plug-in' to display the coverage report." currentBuild.result = 'UNSTABLE' echo "Caught: ${exc}"