hudson.plugins.promoted_builds
Class Promotion

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Actionable
          extended by hudson.model.Run<P,R>
              extended by hudson.model.AbstractBuild<PromotionProcess,Promotion>
                  extended by hudson.plugins.promoted_builds.Promotion
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.DescriptorByNameOwner, hudson.model.ModelObject, hudson.model.PersistenceRoot, hudson.model.Queue.Executable, hudson.model.Saveable, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled, java.lang.Comparable<Promotion>, java.lang.Runnable

public class Promotion
extends hudson.model.AbstractBuild<PromotionProcess,Promotion>

Records a promotion process.

Author:
Kohsuke Kawaguchi

Nested Class Summary
protected  class Promotion.RunnerImpl
           
 
Nested classes/interfaces inherited from class hudson.model.AbstractBuild
hudson.model.AbstractBuild.AbstractRunner, hudson.model.AbstractBuild.DependencyChange
 
Nested classes/interfaces inherited from class hudson.model.Run
hudson.model.Run.Artifact, hudson.model.Run.ArtifactList, hudson.model.Run.KeepLogBuildBadge, hudson.model.Run.RedirectUp, hudson.model.Run.Runner, hudson.model.Run.RunnerAbortedException, hudson.model.Run.Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static hudson.security.PermissionGroup PERMISSIONS
           
static hudson.security.Permission PROMOTE
           
 
Fields inherited from class hudson.model.AbstractBuild
buildEnvironments
 
Fields inherited from class hudson.model.Run
charset, DELETE, description, duration, FEED_ADAPTER, FEED_ADAPTER_LATEST, ID_FORMATTER, nextBuild, number, ORDER_BY_DATE, previousBuild, project, result, state, timestamp, UPDATE, XSTREAM
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
Promotion(PromotionProcess job)
           
Promotion(PromotionProcess job, java.util.Calendar timestamp)
           
Promotion(PromotionProcess project, java.io.File buildDir)
           
 
Method Summary
 hudson.EnvVars getEnvironment(hudson.model.TaskListener listener)
           
 Status getStatus()
          Gets the Status object that keeps track of what Promotions are performed for a build, including this Promotion.
 hudson.model.AbstractBuild<?,?> getTarget()
          Gets the build that this promotion promoted.
 void run()
           
 
Methods inherited from class hudson.model.AbstractBuild
doStop, due, getBuildVariableResolver, getBuildVariables, getBuiltOn, getBuiltOnStr, getChangeSet, getCulprits, getDependencyChanges, getDownstreamBuilds, getDownstreamBuilds, getDownstreamRelationship, getHudsonVersion, getModuleRoot, getModuleRoots, getProject, getTestResultAction, getTransitiveUpstreamBuilds, getUpstreamBuilds, getUpstreamRelationship, getUpstreamRelationshipBuild, getUpUrl, getWhyKeepLog, getWorkspace, hasChangeSetComputed, hasParticipant, setWorkspace
 
Methods inherited from class hudson.model.Run
checkPermission, compareTo, delete, doArtifact, doBuildNumber, doBuildStatus, doBuildTimestamp, doConsoleText, doDoDelete, doProgressiveLog, doSubmitDescription, doToggleLogKeep, fromExternalizableId, getAbsoluteUrl, getACL, getApi, getArtifacts, getArtifactsDir, getBadgeActions, getBuildStatusSummary, getBuildStatusUrl, getCauses, getCharacteristicEnvVars, getCharset, getDescription, getDescriptorByName, getDisplayName, getDuration, getDurationString, getDynamic, getEnvironment, getEnvVars, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getIconColor, getId, getIDFormatter, getLog, getLog, getLogFile, getLogReader, getNextBuild, getNumber, getPreviousBuild, getPreviousBuildInProgress, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getResult, getRootDir, getSearchUrl, getTimestamp, getTimestampString, getTimestampString2, getTruncatedDescription, getUrl, hasntStartedYet, hasPermission, isBuilding, isKeepLog, isLogUpdated, keepLog, keepLog, makeSearchIndex, onEndBuilding, onStartBuilding, run, save, setDescription, setResult, toString
 
Methods inherited from class hudson.model.Actionable
addAction, getAction, getAction, getActions, getActions
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.Queue.Executable
toString
 

Field Detail

PERMISSIONS

public static final hudson.security.PermissionGroup PERMISSIONS

PROMOTE

public static final hudson.security.Permission PROMOTE
Constructor Detail

Promotion

public Promotion(PromotionProcess job)
          throws java.io.IOException
Throws:
java.io.IOException

Promotion

public Promotion(PromotionProcess job,
                 java.util.Calendar timestamp)

Promotion

public Promotion(PromotionProcess project,
                 java.io.File buildDir)
          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getTarget

public hudson.model.AbstractBuild<?,?> getTarget()
Gets the build that this promotion promoted.


getStatus

public Status getStatus()
Gets the Status object that keeps track of what Promotions are performed for a build, including this Promotion.


getEnvironment

public hudson.EnvVars getEnvironment(hudson.model.TaskListener listener)
                              throws java.io.IOException,
                                     java.lang.InterruptedException
Overrides:
getEnvironment in class hudson.model.AbstractBuild<PromotionProcess,Promotion>
Throws:
java.io.IOException
java.lang.InterruptedException

run

public void run()
Specified by:
run in interface hudson.model.Queue.Executable
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class hudson.model.AbstractBuild<PromotionProcess,Promotion>


Copyright © 2009. All Rights Reserved.