Skip to content

Commit

Permalink
Merge pull request #8 from anyone-can-test/master
Browse files Browse the repository at this point in the history
fix for Jenkins 1.577+.
  • Loading branch information
maplesteve committed Dec 7, 2015
2 parents 60ce477 + 7eff4d3 commit f6bc424
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion pom.xml
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>1.480</version><!-- which version of Jenkins is this plugin built against? -->
<version>1.577</version><!-- which version of Jenkins is this plugin built against? -->
</parent>

<groupId>org.jenkins-ci.plugins</groupId>
Expand Down Expand Up @@ -86,6 +86,11 @@
<artifactId>javax.json</artifactId>
<version>1.0.4</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>junit</artifactId>
<version>1.1</version>
</dependency>
</dependencies>

<!-- get every artifact through repo.jenkins-ci.org, which proxies all the artifacts that we need -->
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/JiraTestResultReporter/JiraReporter.java
Expand Up @@ -10,6 +10,7 @@
import hudson.tasks.Notifier;
import hudson.tasks.Publisher;
import hudson.tasks.junit.CaseResult;
import hudson.tasks.junit.TestResultAction;
import hudson.tasks.test.AbstractTestResultAction;
import hudson.util.FormValidation;
import org.kohsuke.stapler.DataBoundConstructor;
Expand Down Expand Up @@ -103,7 +104,7 @@ public boolean perform(final AbstractBuild build,
debugLog(listener,
String.format("%s Workspace is %s%n", pInfo, this.workspace.toString())
);
AbstractTestResultAction<?> testResultAction = build.getAction(AbstractTestResultAction.class);
TestResultAction testResultAction = (TestResultAction)build.getAction(AbstractTestResultAction.class);
if (testResultAction == null) {
logger.printf("%s no test results found; nothing to do.%n", pInfo);
}
Expand Down

0 comments on commit f6bc424

Please sign in to comment.