##// END OF EJS Templates
jenkinsfile: catch the correct exception if jenkins plugin is not available
domruf -
r6506:bc1b11a5 default
parent child Browse files
Show More
@@ -55,7 +55,7 b' node {'
55 55 archiveArtifacts 'pylint.out'
56 56 try {
57 57 step([$class: 'WarningsPublisher', canComputeNew: false, canResolveRelativePaths: false, defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', parserConfigurations: [[parserName: 'PyLint', pattern: 'pylint.out']], unHealthy: ''])
58 } catch (UnsupportedOperationException exc) {
58 } catch (java.lang.IllegalArgumentException exc) {
59 59 echo "You need to install the 'Warnings Plug-in' to display the pylint report."
60 60 currentBuild.result = 'UNSTABLE'
61 61 echo "Caught: ${exc}"
@@ -79,7 +79,7 b' node {'
79 79 junit 'pytest_sqlite.xml'
80 80 try {
81 81 step([$class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: 'coverage.xml', failNoReports: false, failUnhealthy: false, failUnstable: false, maxNumberOfBuilds: 0, onlyStable: false, zoomCoverageChart: false])
82 } catch (UnsupportedOperationException exc) {
82 } catch (java.lang.IllegalArgumentException exc) {
83 83 echo "You need to install the pipeline compatible 'CoberturaPublisher Plug-in' to display the coverage report."
84 84 currentBuild.result = 'UNSTABLE'
85 85 echo "Caught: ${exc}"
General Comments 0
You need to be logged in to leave comments. Login now