findbugs plugin does not fail a pipeline job as requested

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Major
    • Component/s: findbugs-plugin
    • None
    • Environment:

      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.

            Assignee:
            Ulli Hafner
            Reporter:
            Tobias Munk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: