hudson.plugins.promoted_builds.PromotionConditionDescriptor Maven / Gradle / Ivy
package hudson.plugins.promoted_builds;
import hudson.model.AbstractProject;
import hudson.model.Descriptor;
/**
* {@link Descriptor} for {@link PromotionCondition}.
*
* @author Kohsuke Kawaguchi
* @see PromotionConditions#CONDITIONS
*/
public abstract class PromotionConditionDescriptor extends Descriptor {
protected PromotionConditionDescriptor(Class extends PromotionCondition> clazz) {
super(clazz);
}
/**
* Returns true if this condition is applicable to the given project.
*
* @return
* true to allow user to configure this promotion condition for the given project.
*/
public abstract boolean isApplicable(AbstractProject,?> item);
}