Open chetan-2085 opened 3 years ago
the spotbugs jenkins configuration fails build if a bug is found in one of the sub-directories of a project and skips the scan for remaining sub-directories. Is it possible to scan all the sub-directories, highlight all the issues at once and then fail the build.
I am assuming that you are using Maven to build the project? Then yes, simply set failonerror
to false
and us the warnings plugin to define a quality gate. Or use the Maven option --fail-at-end
.
the spotbugs jenkins configuration fails build if a bug is found in one of the sub-directories of a project and skips the scan for remaining sub-directories. Is it possible to scan all the sub-directories, highlight all the issues at once and then fail the build.
For eg. I have a project with 5 sub-projects inside it with failonerror flag set to true. If an issue is identified in 1st sub-project, it skips scanning of remaining 4 sub-projects and fails the build. I want to know if there is a way where all the 5 sub-projects are scanned at once, all the issues are highlighted and then the build fails, all at once.