Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-15865] Jenkins build fails with fatal error for Maven 2 build
of project with maven-failsafe-plugin

Do not inject testFailureIgnore to
maven-failsafe-plugin:integration-test because it doesn't exist and
causes an NPE with Maven2.
Only insert it for maven-failsafe-plugin:verify.
Originally-Committed-As: 7fb1ad44d5aa26f2b0c6717c589b6d2be698224d
  • Loading branch information
Vlatombe committed Nov 20, 2012
1 parent bfa16d5 commit 0a1f301
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/hudson/maven/reporters/SurefireArchiver.java
Expand Up @@ -319,7 +319,6 @@ private boolean isAndroidMojo(MojoInfo mojo) {

private boolean isSurefireOrFailsafeMojo(MojoInfo mojo) {
return mojo.is("org.apache.maven.plugins", "maven-surefire-plugin", "test")
|| mojo.is("org.apache.maven.plugins", "maven-failsafe-plugin", "integration-test")
|| mojo.is("org.apache.maven.plugins", "maven-failsafe-plugin", "verify");
}

Expand Down

0 comments on commit 0a1f301

Please sign in to comment.