'MVN test failed and passed count in release pipeline

I am performing MVN test -f pom.xml & want to set the failed count to use in future Release pipeline tasks. Is there any way to get the MVN test failed count and use it in later steps.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source