JENKINS-16573 Getting testing result from non default junit mojo failed build.

Fix for JENKINS-16573. Please review and approve