Package hudson.plugins.promoted_builds
Class PromotedProjectAction
java.lang.Object
hudson.plugins.promoted_builds.PromotedProjectAction
- All Implemented Interfaces:
- Action,- ModelObject,- PermalinkProjectAction,- ProminentProjectAction
@ExportedBean
public class PromotedProjectAction
extends Object
implements ProminentProjectAction, PermalinkProjectAction
For customizing project top-level GUI.
- Author:
- Kohsuke Kawaguchi
- 
Nested Class SummaryNested classes/interfaces inherited from interface hudson.model.PermalinkProjectActionPermalinkProjectAction.Permalink
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponsedoCreateProcess(String name, org.kohsuke.stapler.StaplerRequest2 req) getApi()AbstractBuild<?,?> AbstractBuild<?,?> Finds the last promoted build under the given criteria.getProcess(String name) Get the promotion process by name.getPromotions(PromotionProcess promotionProcess) getPromotionsSummary(PromotionProcess promotionProcess) returns the summary of the latest promotions for a promotion process.getStatus(PromotionProcess process) 
- 
Field Details- 
owner
 
- 
- 
Constructor Details- 
PromotedProjectAction
 
- 
- 
Method Details- 
getApi
- 
getProcesses
- 
getProcessGet the promotion process by name.- Parameters:
- name- Name of the process
- Returns:
- Discovered process or nullif it cannot be found
 
- 
getLatest
- 
getPromotionProcesses@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public List<PromotionProcess> getPromotionProcesses()
- 
getStatus@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public Status getStatus(PromotionProcess process) 
- 
getLatestFinds the last promoted build under the given criteria.
- 
getPromotions
- 
getPromotionsSummaryreturns the summary of the latest promotions for a promotion process.- Parameters:
- promotionProcess- Name of the promotion process
- Returns:
- List of latest promotions
 
- 
getPermalinks- Specified by:
- getPermalinksin interface- PermalinkProjectAction
 
- 
doCreateProcesspublic org.kohsuke.stapler.HttpResponse doCreateProcess(@QueryParameter String name, org.kohsuke.stapler.StaplerRequest2 req) throws IOException - Throws:
- IOException
 
- 
getIconFileName- Specified by:
- getIconFileNamein interface- Action
 
- 
getDisplayName- Specified by:
- getDisplayNamein interface- Action
- Specified by:
- getDisplayNamein interface- ModelObject
 
- 
getUrlName- Specified by:
- getUrlNamein interface- Action
 
 
-