Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46206

findbugs plugin does not fail a pipeline job as requested

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • findbugs-plugin
    • None

      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.

            drulli Ulli Hafner
            tobias_hd Tobias Munk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: