Skip to content

Commit

Permalink
[JENKINS-35420] Only add reporting action for supported runs)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcechace committed Aug 1, 2016
1 parent 7645690 commit be136fa
Showing 1 changed file with 4 additions and 2 deletions.
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 be136fa

Please sign in to comment.