forked from jenkinsci/regression-report-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update current year pass compilation, but still have four test failures update test cases to pass add <repositories> and <pluginRepositories> to pass build on Buildhive. add changelog Merge branch 'upgrade-jenkins-version' [maven-release-plugin] prepare release regression-report-plugin-1.3 [maven-release-plugin] prepare for next development iteration add explanation about itself upgrade Jenkins ver. to the latest LTS [maven-release-plugin] prepare release regression-report-plugin-1.4 [maven-release-plugin] prepare for next development iteration Added feature to attach build log to email Attached text file without special characters Added test for attaching build log refactored the new attachment functionality removed trailing whitespaces Added feature to attach build log to email Added feature to attach build log to email Added feature to attach build log to email Added feature to attach build log to emailMerge branch 'master' of github.com:asadimtiazbutt/regression-report-plugin
- Loading branch information
aibutt2
committed
Nov 25, 2015
1 parent
299b81a
commit a630423
Showing
10 changed files
with
195 additions
and
24 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
11 changes: 8 additions & 3 deletions
11
src/main/java/jp/skypencil/jenkins/regression/RegressionPredicate.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 |
---|---|---|
@@ -1,12 +1,17 @@ | ||
package jp.skypencil.jenkins.regression; | ||
|
||
import hudson.tasks.junit.CaseResult; | ||
import hudson.tasks.test.TestResult; | ||
|
||
import com.google.common.base.Predicate; | ||
|
||
class RegressionPredicate implements Predicate<CaseResult> { | ||
class RegressionPredicate implements Predicate<TestResult> { | ||
@Override | ||
public boolean apply(CaseResult input) { | ||
return input.getStatus().isRegression(); | ||
public boolean apply(TestResult input) { | ||
if (input instanceof CaseResult) { | ||
CaseResult caseResult = (CaseResult) input; | ||
return caseResult.getStatus().isRegression(); | ||
} | ||
return false; | ||
} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
src/main/java/jp/skypencil/jenkins/regression/TestResultToCaseResult.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,13 @@ | ||
package jp.skypencil.jenkins.regression; | ||
|
||
import hudson.tasks.junit.CaseResult; | ||
import hudson.tasks.test.TestResult; | ||
|
||
import com.google.common.base.Function; | ||
|
||
class TestResultToCaseResult implements Function<TestResult, CaseResult> { | ||
@Override | ||
public CaseResult apply(TestResult input) { | ||
return (CaseResult) input; | ||
} | ||
} |
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
3 changes: 2 additions & 1 deletion
3
...main/resources/jp/skypencil/jenkins/regression/RegressionReportNotifier/config.properties
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
Recipients=Recipients | ||
SentToCulprits=Send mail to who might make regression | ||
SentToCulprits=Send mail to who might make regression | ||
AttachLog=Attach build log to email |
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
Oops, something went wrong.