File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\core\src\main\java\hudson\model\BuildStepListener.java.html

1 package hudson.model;
2
3 import hudson.ExtensionList;
4 import hudson.ExtensionPoint;
5 import hudson.tasks.BuildStep;
6 import jenkins.model.Jenkins;
7
8 import java.util.List;
9
10 /**
11 * Receives events that happen as a build executes {@link BuildStep}s.
12 * @author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
13 * @since 1.502
14 */
15 public abstract class BuildStepListener implements ExtensionPoint {
16
17 /**
18 * Called when a buildStep is performed.
19 */
20 public abstract void started(AbstractBuild build, BuildStep bs, BuildListener listener);
21
22 /**
23 * Called when a buildStep has completed.
24 */
25 public abstract void finished(AbstractBuild build, BuildStep bs, BuildListener listener, boolean canContinue);
26
27 /**
28 * Returns all the registered {@link BuildStepListener}s.
29 */
30 public static ExtensionList<BuildStepListener> all() {
31 return Jenkins.getInstance().getExtensionList(BuildStepListener.class);
32 }
33 }
34