hudson.tasks.Publisher Maven / Gradle / Ivy
package hudson.tasks;
import hudson.model.Describable;
import hudson.model.Build;
import hudson.model.BuildListener;
import hudson.model.Action;
import hudson.model.Project;
import hudson.ExtensionPoint;
/**
* {@link BuildStep}s that run after the build is completed.
*
*
* To register a custom {@link Publisher} from a plugin,
* add it to {@link BuildStep#PUBLISHERS}.
*
* @author Kohsuke Kawaguchi
*/
public abstract class Publisher implements BuildStep, Describable, ExtensionPoint {
/**
* Default implementation that does nothing.
*/
public boolean prebuild(Build build, BuildListener listener) {
return true;
}
/**
* Default implementation that does nothing.
*/
public Action getProjectAction(Project project) {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy