Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Component/s: findbugs-plugin
-
Labels:None
-
Environment:java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.8.0_101-b13
java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 1.8
java.vendor Oracle Corporation
java.vendor.url http://java.oracle.com/
java.version 1.8.0_101
os.arch amd64
os.name Linux
os.version 4.2.0-27-generic
findbugs 4.71
pipeline-build-step 2.5.1 true
pipeline-github-lib 1.0 true
pipeline-graph-analysis 1.5 true
pipeline-input-step 2.8 true
pipeline-maven 2.5.2 true
pipeline-milestone-step 1.3.1 true
pipeline-model-api 1.1.9 true
pipeline-model-declarative-agent 1.1.1 true
pipeline-model-definition 1.1.9 true
pipeline-model-extensions 1.1.9 true
pipeline-rest-api 2.8 true
pipeline-stage-step 2.2 true
pipeline-stage-tags-metadata 1.1.9 true
pipeline-stage-view 2.8 true
pipeline-utility-steps
workflow-api 2.20 true
workflow-basic-steps 2.6 true
workflow-cps 2.39 true
workflow-cps-global-lib 2.8 true
workflow-durable-task-step 2.13 true
workflow-job 2.12.2 true
workflow-multibranch 2.16 true
workflow-scm-step 2.6 true
workflow-step-api 2.12 truejava.runtime.name Java(TM) SE Runtime Environment java.runtime.version 1.8.0_101-b13 java.specification.name Java Platform API Specification java.specification.vendor Oracle Corporation java.specification.version 1.8 java.vendor Oracle Corporation java.vendor.url http://java.oracle.com/ java.version 1.8.0_101 os.arch amd64 os.name Linux os.version 4.2.0-27-generic findbugs 4.71 pipeline-build-step 2.5.1 true pipeline-github-lib 1.0 true pipeline-graph-analysis 1.5 true pipeline-input-step 2.8 true pipeline-maven 2.5.2 true pipeline-milestone-step 1.3.1 true pipeline-model-api 1.1.9 true pipeline-model-declarative-agent 1.1.1 true pipeline-model-definition 1.1.9 true pipeline-model-extensions 1.1.9 true pipeline-rest-api 2.8 true pipeline-stage-step 2.2 true pipeline-stage-tags-metadata 1.1.9 true pipeline-stage-view 2.8 true pipeline-utility-steps workflow-api 2.20 true workflow-basic-steps 2.6 true workflow-cps 2.39 true workflow-cps-global-lib 2.8 true workflow-durable-task-step 2.13 true workflow-job 2.12.2 true workflow-multibranch 2.16 true workflow-scm-step 2.6 true workflow-step-api 2.12 true
-
Similar Issues:
Description
Within a pipeline, I have configured findbugs report :
deleteDir()
checkout scm
sh "mvn clean install"findbugs defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', pattern: '**/findbugsXml.xml', failedTotalHigh: '0', unHealthy: ''
The report is produced correctly. But if a 'High' issue appears, the build is not aborted, and not set to status 'failed'.
In the console log, findbugs reports:
[FINDBUGS] Plug-in Result: Failed - <a href="findbugsResult">5 warnings</a> of <a href="findbugsResult/HIGH">priority High</a> exceed the threshold of 0 by 5
but the build just proceeds as if the report would not find anything.
I created a test case in ATH to reproduce the bug without success. The test cases verifies three different thresholds for unstable or failure but all work as expected.
Is there anything different in your setup?
Or are you using some additional plugins that prevent setting the builds status?
Or is your script more complicated than the snippet shown above?
Maybe you can create a simple setup that just checks for findbugs without any other special steps.