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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy