hudson.plugins.promoted_builds
クラス Status

java.lang.Object
  上位を拡張 hudson.plugins.promoted_builds.Status

public final class Status
extends java.lang.Object

Promotion status of a build wrt a specific PromotionProcess.

作成者:
Kohsuke Kawaguchi
関連項目:
PromotedBuildAction.statuses

フィールドの概要
 java.lang.String name
          Matches with AbstractItem.name.
 java.util.Calendar timestamp
          When did the build qualify for a promotion?
 
コンストラクタの概要
Status(PromotionProcess process, java.util.Collection<? extends PromotionBadge> badges)
           
 
メソッドの概要
 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.
 Promotion getPromotionBuild(int number)
          Gets the promotion build by build number.
 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.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

name

public final java.lang.String name
Matches with AbstractItem.name.


timestamp

public final java.util.Calendar timestamp
When did the build qualify for a promotion?

コンストラクタの詳細

Status

public Status(PromotionProcess process,
              java.util.Collection<? extends PromotionBadge> badges)
メソッドの詳細

getName

public java.lang.String getName()

getParent

public PromotedBuildAction getParent()
Gets the parent Status that owns this object.


getProcess

public PromotionProcess getProcess()
Gets the PromotionProcess that this object deals with.


getTarget

public hudson.model.AbstractBuild<?,?> getTarget()
Gets the build that was qualified for a promotion.


getTimestampString

public java.lang.String getTimestampString()
Gets the string that says how long since this promotion had happened.

戻り値:
string like "3 minutes" "1 day" etc.

getDelayString

public java.lang.String getDelayString(hudson.model.AbstractBuild<?,?> owner)
Gets the string that says how long did it toook for this build to be promoted.


isFor

public boolean isFor(PromotionProcess process)

getSuccessfulPromotion

public Promotion getSuccessfulPromotion(JobPropertyImpl jp)
Returns the Promotion object that represents the successful promotion.

戻り値:
null if the promotion has never been successful, or if it was but the record is already lost.

isPromotionSuccessful

public boolean isPromotionSuccessful()
Returns true if the promotion was successfully completed.


isPromotionAttempted

public boolean isPromotionAttempted()
Returns true if at least one Promotion activity is attempted. False if none is executed yet (this includes the case where it's in the queue.)


isInQueue

public boolean isInQueue()
Returns true if the promotion for this is pending in the queue, waiting to be executed.


getBadges

public java.util.List<PromotionBadge> getBadges()
Gets the badges indicating how did a build qualify for a promotion.


getLastSuccessful

public Promotion getLastSuccessful()
Gets the last successful Promotion.


getLastFailed

public Promotion getLastFailed()
Gets the last successful Promotion.


getPromotionBuilds

public java.util.List<Promotion> getPromotionBuilds()
Gets all the promotion builds.


getPromotionBuild

public Promotion getPromotionBuild(int number)
Gets the promotion build by build number.

パラメータ:
number - build number
戻り値:
promotion build

doBuild

public void doBuild(org.kohsuke.stapler.StaplerRequest req,
                    org.kohsuke.stapler.StaplerResponse rsp)
             throws java.io.IOException,
                    javax.servlet.ServletException
Schedules a new build.

例外:
java.io.IOException
javax.servlet.ServletException


Copyright © 2011. All Rights Reserved.