Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[FIXED JENKINS-14102] mark maven build with test failures as unstable
Originally-Committed-As: 5f4f68be0081cd9b9554c7d0ce8529c573764056
- Loading branch information
Showing
4 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/java/hudson/maven/reporters/TestFailureDetector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package hudson.maven.reporters; | ||
|
||
import hudson.maven.MavenReporter; | ||
|
||
/** | ||
* A maven reporter expressing whether he found test failures and the build should be marked as UNSTABLE. | ||
* | ||
* @author Dominik Bartholdi (imod) | ||
*/ | ||
public abstract class TestFailureDetector extends MavenReporter { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* Have any test failures been detected? | ||
* | ||
* @return <code>true</code> if there ar test failures | ||
*/ | ||
public abstract boolean hasTestFailures(); | ||
|
||
} |