Skip to content

Commit

Permalink
Merge pull request #1 from jcechace/JENKINS-35420
Browse files Browse the repository at this point in the history
Jenkins 35420
  • Loading branch information
olivergondza committed Aug 1, 2016
2 parents 032ce5a + be136fa commit 5e85030
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>1.480</version>
<version>1.480.3</version>
</parent>

<artifactId>junit-realtime-test-reporter</artifactId>
Expand Down
Expand Up @@ -40,7 +40,9 @@ public class Attacher extends RunListener<Run<?, ?>> {

@Override
public void onStarted(Run<?, ?> run, TaskListener listener) {

if ( !( run instanceof AbstractBuild )) {
return;
}
final AbstractBuild<?, ?> build = (AbstractBuild<?, ?>) run;

if (!isApplicable(build)) return;
Expand All @@ -66,4 +68,4 @@ private static boolean isApplicable(final AbstractBuild<?, ?> build) {

return true;
}
}
}

0 comments on commit 5e85030

Please sign in to comment.