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

dk.hlyh.ciplugins.projecthealth.ProjectHealthActionFactory Maven / Gradle / Ivy

The newest version!
package dk.hlyh.ciplugins.projecthealth;

import hudson.Extension;
import hudson.model.AbstractProject;
import hudson.model.Action;
import hudson.model.TransientProjectActionFactory;

import java.util.ArrayList;
import java.util.Collection;

/**
 * Extends project actions for all jobs.
 *
 * @author Henrik Lynggaard Hansen 
 */
@Extension
public class ProjectHealthActionFactory extends TransientProjectActionFactory {


    /**
     * {@inheritDoc}
     */
    @Override
    public Collection createFor(@SuppressWarnings("unchecked") AbstractProject target) {
        ArrayList actions = new ArrayList();                
        ProjectHealthProjectAction newAction = new ProjectHealthProjectAction(target);
        
        actions.add(newAction);
        return actions;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy