Is it possible to disable the teamcity surefire watcher from mvn when not running tests?
We have maven builds to do simple things that do not need any test reporting support and which result in a large amount noise in the TeamCity build logs.
Some examples of the simple Teamcity builds which we would like to disable TeamCity surefire plugin would be:
mvn versions:set
or maven builds which skip tests:
mvn -DskipTests
Please sign in to leave a comment.
Hi Sofoklis,
I'm not too familiar with the surefire plugin. As far as I know, it only gets run during the test phase. If you skip tests or don't run it, it shouldn't be run? What kind of noise is it generating? Also, which version of teamcity are you using?
Hi Denis,
This is not about the surefire plugin itself, it's the integrated teamcity surefire watcher that with a mvn build step grabs the test output to report in the gui. Anytime the tests are not run we get the below output for every maven module. We're using TeamCity Enterprise 2017.2 (build 50574)
Thanks,
Morten
Dear Denis Lapuente
Couple years passed, but I'm searching the answer for the same question.
Teamcity plugin for maven builds is very convenient, but some of our builds (multimodule, around 300 modules) are not executing tests at all. But still Surefire report watcher is spawned by this TC plugin to watch if there are any tests results incoming.
Additional flag to disable it would be very appreciated.
Thanks,
Mat.