|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.promoted_builds.Status
public final class Status
Promotion status of a build wrt a specific PromotionProcess.
PromotedBuildAction.statuses| Field Summary | |
|---|---|
java.lang.String |
name
Matches with AbstractItem.name. |
java.util.Calendar |
timestamp
When did the build qualify for a promotion? |
| Constructor Summary | |
|---|---|
Status(PromotionProcess process,
java.util.Collection<? extends PromotionBadge> badges)
|
|
| Method Summary | |
|---|---|
void |
doBuild(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Schedules a new build. |
java.util.List<PromotionBadge> |
getBadges()
Gets the badges indicating how did a build qualify for a promotion. |
java.lang.String |
getDelayString(hudson.model.AbstractBuild<?,?> owner)
Gets the string that says how long did it toook for this build to be promoted. |
Promotion |
getLastFailed()
Gets the last successful Promotion. |
Promotion |
getLastSuccessful()
Gets the last successful Promotion. |
java.lang.String |
getName()
|
PromotedBuildAction |
getParent()
Gets the parent Status that owns this object. |
PromotionProcess |
getProcess()
Gets the PromotionProcess that this object deals with. |
java.util.List<Promotion> |
getPromotionBuilds()
Gets all the promotion builds. |
Promotion |
getSuccessfulPromotion(JobPropertyImpl jp)
Returns the Promotion object that represents the successful promotion. |
hudson.model.AbstractBuild<?,?> |
getTarget()
Gets the build that was qualified for a promotion. |
java.lang.String |
getTimestampString()
Gets the string that says how long since this promotion had happened. |
boolean |
isFor(PromotionProcess process)
|
boolean |
isInQueue()
Returns true if the promotion for this is pending in the queue, waiting to be executed. |
boolean |
isPromotionAttempted()
Returns true if at least one Promotion activity is attempted. |
boolean |
isPromotionSuccessful()
Returns true if the promotion was successfully completed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String name
AbstractItem.name.
public final java.util.Calendar timestamp
| Constructor Detail |
|---|
public Status(PromotionProcess process,
java.util.Collection<? extends PromotionBadge> badges)
| Method Detail |
|---|
public java.lang.String getName()
public PromotedBuildAction getParent()
Status that owns this object.
public PromotionProcess getProcess()
PromotionProcess that this object deals with.
public hudson.model.AbstractBuild<?,?> getTarget()
public java.lang.String getTimestampString()
public java.lang.String getDelayString(hudson.model.AbstractBuild<?,?> owner)
public boolean isFor(PromotionProcess process)
public Promotion getSuccessfulPromotion(JobPropertyImpl jp)
Promotion object that represents the successful promotion.
public boolean isPromotionSuccessful()
public boolean isPromotionAttempted()
Promotion activity is attempted.
False if none is executed yet (this includes the case where it's in the queue.)
public boolean isInQueue()
public java.util.List<PromotionBadge> getBadges()
public Promotion getLastSuccessful()
Promotion.
public Promotion getLastFailed()
Promotion.
public java.util.List<Promotion> getPromotionBuilds()
public void doBuild(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||