##// 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 archiveArtifacts 'pylint.out'
55 archiveArtifacts 'pylint.out'
56 try {
56 try {
57 step([$class: 'WarningsPublisher', canComputeNew: false, canResolveRelativePaths: false, defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', parserConfigurations: [[parserName: 'PyLint', pattern: 'pylint.out']], unHealthy: ''])
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 echo "You need to install the 'Warnings Plug-in' to display the pylint report."
59 echo "You need to install the 'Warnings Plug-in' to display the pylint report."
60 currentBuild.result = 'UNSTABLE'
60 currentBuild.result = 'UNSTABLE'
61 echo "Caught: ${exc}"
61 echo "Caught: ${exc}"
@@ -79,7 +79,7 b' node {'
79 junit 'pytest_sqlite.xml'
79 junit 'pytest_sqlite.xml'
80 try {
80 try {
81 step([$class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: 'coverage.xml', failNoReports: false, failUnhealthy: false, failUnstable: false, maxNumberOfBuilds: 0, onlyStable: false, zoomCoverageChart: false])
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 echo "You need to install the pipeline compatible 'CoberturaPublisher Plug-in' to display the coverage report."
83 echo "You need to install the pipeline compatible 'CoberturaPublisher Plug-in' to display the coverage report."
84 currentBuild.result = 'UNSTABLE'
84 currentBuild.result = 'UNSTABLE'
85 echo "Caught: ${exc}"
85 echo "Caught: ${exc}"
General Comments 0
You need to be logged in to leave comments. Login now