Skip to content
Permalink
Browse files

[JENKINS-35420] Only add reporting action for supported runs)

  • Loading branch information...
jcechace committed Aug 1, 2016
1 parent 7645690 commit be136fa97d8f968afb4aaa70acc02a8de999f56d
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/Attacher.java
@@ -40,7 +40,9 @@

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

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

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

return true;
}
}
}

0 comments on commit be136fa

Please sign in to comment.
You can’t perform that action at this time.