|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.promoted_builds.PromotedBuildAction
public final class PromotedBuildAction
Action for AbstractBuild indicating that it's promoted.
| Field Summary | |
|---|---|
hudson.model.AbstractBuild<?,?> |
owner
|
| Constructor Summary | |
|---|---|
PromotedBuildAction(hudson.model.AbstractBuild<?,?> owner)
|
|
PromotedBuildAction(hudson.model.AbstractBuild<?,?> owner,
Status firstStatus)
|
|
| Method Summary | |
|---|---|
boolean |
add(Status status)
Called when the build is qualified. |
boolean |
canPromote()
|
boolean |
contains(PromotionProcess process)
Checks if the given criterion is already promoted. |
boolean |
contains(java.lang.String name)
Checks if the given criterion is already promoted. |
void |
doForcePromotion(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
java.lang.String name)
Force a promotion. |
java.lang.String |
getDisplayName()
|
Status |
getDynamic(java.lang.String name,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Binds Status to URL hierarchy by its name. |
java.lang.String |
getIconFileName()
|
java.util.List<PromotionProcess> |
getPendingPromotions()
Gets list of PromotionProcesss that are not yet attained. |
hudson.model.AbstractProject<?,?> |
getProject()
Gets the owning project. |
Status |
getPromotion(java.lang.String name)
Finds the Status that has matching Status.name value. |
java.util.List<Status> |
getPromotions()
Gets the read-only view of all the promotions that this build achieved. |
java.lang.String |
getUrlName()
|
boolean |
hasPromotion()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final hudson.model.AbstractBuild<?,?> owner
| Constructor Detail |
|---|
public PromotedBuildAction(hudson.model.AbstractBuild<?,?> owner)
public PromotedBuildAction(hudson.model.AbstractBuild<?,?> owner,
Status firstStatus)
| Method Detail |
|---|
public hudson.model.AbstractProject<?,?> getProject()
public boolean contains(PromotionProcess process)
public boolean contains(java.lang.String name)
public boolean add(Status status)
throws java.io.IOException
java.io.IOExceptionpublic java.util.List<Status> getPromotions()
public Status getPromotion(java.lang.String name)
Status that has matching Status.name value.
Or null if not found.
public boolean hasPromotion()
public boolean canPromote()
public java.util.List<PromotionProcess> getPendingPromotions()
PromotionProcesss that are not yet attained.
public java.lang.String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic java.lang.String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic java.lang.String getUrlName()
getUrlName in interface hudson.model.Action
public Status getDynamic(java.lang.String name,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Status to URL hierarchy by its name.
public void doForcePromotion(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter(value="name")
java.lang.String name)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||