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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponse
doCreateProcess
(String name, org.kohsuke.stapler.StaplerRequest 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
null
if 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:
getPermalinks
in interfacePermalinkProjectAction
-
doCreateProcess
public org.kohsuke.stapler.HttpResponse doCreateProcess(@QueryParameter String name, org.kohsuke.stapler.StaplerRequest req) throws IOException - Throws:
IOException
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-