[JENKINS-19801] refactor MavenBuildTest.stopBuildAndAllSubmoduleBuilds