Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

limit build failure at parent level #112

Open
chetan-2085 opened this issue Jun 29, 2021 · 1 comment
Open

limit build failure at parent level #112

chetan-2085 opened this issue Jun 29, 2021 · 1 comment

Comments

@chetan-2085
Copy link

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.

@uhafner
Copy link

uhafner commented Jun 30, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants