KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hudson > tasks > Publisher


1 package hudson.tasks;
2
3 import hudson.ExtensionPoint;
4 import hudson.model.Action;
5 import hudson.model.Build;
6 import hudson.model.BuildListener;
7 import hudson.model.Describable;
8 import hudson.model.Project;
9
10 /**
11  * {@link BuildStep}s that run after the build is completed.
12  *
13  * <p>
14  * To register a custom {@link Publisher} from a plugin,
15  * add it to {@link BuildStep#PUBLISHERS}.
16  *
17  * @author Kohsuke Kawaguchi
18  */

19 public abstract class Publisher implements BuildStep, Describable<Publisher>, ExtensionPoint {
20     /**
21      * Default implementation that does nothing.
22      */

23     public boolean prebuild(Build build, BuildListener listener) {
24         return true;
25     }
26
27     /**
28      * Default implementation that does nothing.
29      */

30     public Action getProjectAction(Project project) {
31         return null;
32     }
33 }
34
Popular Tags