Failing jenkins build when unit test coverage falls below a threshold in a multi module maven project
Can someone let me know how can I fail a build when code coverage falls below a certain threshold in a multi-module java maven project? I have looked at the jenkins-jacoco plugin but it does not mention anything specific to a multi-module project. Jacoco itself does not seem to support its check goal intended for this use case does not seem to work with the multi-module project as discussed here.
Can someone suggest some solution?
I am trying to avoid sonar as I just need code coverage and nothing else and it will also require me to install it in a separate server.