All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hudson.plugins.promoted_builds.PromotionConditionDescriptor Maven / Gradle / Ivy

There is a newer version: 1.11
Show newest version
package hudson.plugins.promoted_builds;

import hudson.model.AbstractProject;
import hudson.model.Descriptor;

/**
 * {@link Descriptor} for {@link PromotionCondition}.
 *
 * @author Kohsuke Kawaguchi
 * @see PromotionCondition#all()
 * @see PromotionCondition#getApplicableTriggers(AbstractProject) 
 */
public abstract class PromotionConditionDescriptor extends Descriptor {
    protected PromotionConditionDescriptor(Class clazz) {
        super(clazz);
    }

    protected PromotionConditionDescriptor() {
        super();
    }

    /**
     * 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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy