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 Summary
Nested classes/interfaces inherited from interface hudson.model.PermalinkProjectAction
PermalinkProjectAction.Permalink -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
getProcess
Get 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) -
getLatest
Finds the last promoted build under the given criteria. -
getPromotions
-
getPromotionsSummary
returns 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 interfacePermalinkProjectAction
-
doCreateProcess
public org.kohsuke.stapler.HttpResponse doCreateProcess(@QueryParameter String name, org.kohsuke.stapler.StaplerRequest2 req) throws IOException - Throws:
IOException
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-