Package hudson.model

Interface BuildListener

All Superinterfaces:
Serializable, org.jenkinsci.remoting.SerializableOnlyOverRemoting, TaskListener
All Known Implementing Classes:
BuildListenerAdapter, StreamBuildListener

public interface BuildListener extends TaskListener
Receives events that happen during a build.
Author:
Kohsuke Kawaguchi
  • Method Details

    • started

      default void started(List<Cause> causes)
      Called when a build is started.
      Parameters:
      causes - Causes that started a build. See Run.getCauses().
    • finished

      default void finished(Result result)
      Called when a build is finished.