Skip to content

Commit

Permalink
[FIXED JENKINS-27225] Support the Workflow plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
batmat committed Oct 8, 2015
1 parent 40e0029 commit 2a5a9ad
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -4,6 +4,8 @@
import hudson.model.TaskListener;
import hudson.model.AbstractBuild;
import hudson.model.Cause;
import hudson.model.Job;
import hudson.model.Run;
import hudson.model.listeners.RunListener;

import java.util.List;
Expand All @@ -20,16 +22,17 @@
* @author Michael Pailloncy
*/
@Extension
public class RunListenerImpl extends RunListener<AbstractBuild> {
public class RunListenerImpl extends RunListener<Run> {
private static final Logger LOGGER = LoggerFactory.getLogger(RunListenerImpl.class);

public RunListenerImpl() {
super(AbstractBuild.class);
super(Run.class);
}

@Override
public void onStarted(AbstractBuild build, TaskListener listener) {
public void onStarted(Run build, TaskListener listener) {
BuildTriggerBadgePlugin plugin = Jenkins.getInstance().getPlugin(BuildTriggerBadgePlugin.class);
System.out.println("Biiiiiiiiiim started");
if (plugin.isActivated()) {
List<Cause> causes = CauseFilter.filter((List<Cause>) build.getCauses());
for (Cause cause : causes) {
Expand Down

0 comments on commit 2a5a9ad

Please sign in to comment.