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
-
-
Field Summary
-
Fields inherited from interface hudson.model.TaskListener
NULL
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
finished(Result result)
Called when a build is finished.default void
started(List<Cause> causes)
Called when a build is started.-
Methods inherited from interface org.jenkinsci.remoting.SerializableOnlyOverRemoting
getChannelForSerialization
-
Methods inherited from interface hudson.model.TaskListener
annotate, error, error, fatalError, fatalError, getCharset, getLogger, hyperlink
-
-
-
-
Method Detail
-
started
default void started(List<Cause> causes)
Called when a build is started.- Parameters:
causes
- Causes that started a build. SeeRun.getCauses()
.
-
finished
default void finished(Result result)
Called when a build is finished.
-
-