dk.hlyh.ciplugins.projecthealth.ProjectHealthActionFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of project-health-report Show documentation
Show all versions of project-health-report Show documentation
This Hudson/Jenkins plugin shows project health
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 extends Action> createFor(@SuppressWarnings("unchecked") AbstractProject target) {
ArrayList actions = new ArrayList();
ProjectHealthProjectAction newAction = new ProjectHealthProjectAction(target);
actions.add(newAction);
return actions;
}
}