hudson.matrix
Class MatrixBuild

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<MatrixProject,MatrixBuild>
                  extended by hudson.matrix.MatrixBuild
All Implemented Interfaces:
ExtensionPoint, DescriptorByNameOwner, ModelObject, PersistenceRoot, Queue.Executable, Saveable, SearchableModelObject, SearchItem, AccessControlled, Comparable<MatrixBuild>, Runnable

public class MatrixBuild
extends AbstractBuild<MatrixProject,MatrixBuild>

Build of MatrixProject.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 class MatrixBuild.RunPtr
          Used by view to render a ball for MatrixRun.
 
Nested classes/interfaces inherited from class hudson.model.AbstractBuild
AbstractBuild.DependencyChange
 
Nested classes/interfaces inherited from class hudson.model.Run
Run.Artifact, Run.ArtifactList, Run.KeepLogBuildBadge, Run.RedirectUp, Run.RunnerAbortedException, Run.Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.Run
ARTIFACTS, DELETE, FEED_ADAPTER, FEED_ADAPTER_LATEST, LIST_CUTOFF, number, ORDER_BY_DATE, PERMISSIONS, TREE_CUTOFF, UPDATE, XSTREAM
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
MatrixBuild(MatrixProject job)
           
MatrixBuild(MatrixProject job, Calendar timestamp)
           
MatrixBuild(MatrixProject project, File buildDir)
           
 
Method Summary
 Fingerprint.RangeSet getDownstreamRelationship(AbstractProject that)
          Gets the dependency relationship from this build (as the source) and that project (as the sink.)
 Object getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 Layouter<MatrixBuild.RunPtr> getLayouter()
           
 MatrixRun getRun(Combination c)
          Gets the MatrixRun in this build that corresponds to the given combination.
 List<MatrixRun> getRuns()
          Returns all MatrixRuns for this MatrixBuild.
 Object readResolve()
           
 void run()
          Invoked by Executor to performs a build.
 
Methods inherited from class hudson.model.AbstractBuild
delete, doStop, due, getBuildVariableResolver, getBuildVariables, getBuiltOn, getBuiltOnStr, getChangeSet, getCulprits, getDependencyChanges, getDownstreamBuilds, getDownstreamBuilds, getEnvironment, getHudsonVersion, getModuleRoot, getModuleRoots, getProject, getSensitiveBuildVariables, getTestResultAction, getTransitiveUpstreamBuilds, getUpstreamBuilds, getUpstreamRelationship, getUpstreamRelationshipBuild, getUpUrl, getWhyKeepLog, getWorkspace, hasChangeSetComputed, hasParticipant
 
Methods inherited from class hudson.model.Run
addAction, checkPermission, compareTo, deleteArtifacts, doArtifact, doBuildNumber, doBuildStatus, doBuildTimestamp, doConfigSubmit, doConsoleText, doDoDelete, doProgressiveLog, doSubmitDescription, doToggleLogKeep, fromExternalizableId, getAbsoluteUrl, getACL, getApi, getArtifacts, getArtifactsDir, getArtifactsUpTo, getBadgeActions, getBuildStatusSummary, getBuildStatusUrl, getCause, getCauses, getCharacteristicEnvVars, getCharset, getDescription, getDescriptorByName, getDisplayName, getDuration, getDurationString, getEnvironment, getEnvVars, getEstimatedDuration, getExecutor, getExternalizableId, getFullDisplayName, getFullName, getHasArtifacts, getIconColor, getId, getIDFormatter, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNextBuild, getNumber, getParent, getPreviousBuild, getPreviousBuildInProgress, getPreviousBuildsOverThreshold, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getPreviousSuccessfulBuild, getResult, getRootDir, getSearchUrl, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTruncatedDescription, getUrl, hasCustomDisplayName, hasntStartedYet, hasPermission, isBuilding, isKeepLog, isLogUpdated, keepLog, keepLog, save, setDescription, setDisplayName, setResult, toString, writeLogTo
 
Methods inherited from class hudson.model.Actionable
getAction, getAction, getActions, getActions
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.Queue.Executable
getEstimatedDuration, getParent, toString
 

Constructor Detail

MatrixBuild

public MatrixBuild(MatrixProject job)
            throws IOException
Throws:
IOException

MatrixBuild

public MatrixBuild(MatrixProject job,
                   Calendar timestamp)

MatrixBuild

public MatrixBuild(MatrixProject project,
                   File buildDir)
            throws IOException
Throws:
IOException
Method Detail

readResolve

public Object readResolve()

getLayouter

public Layouter<MatrixBuild.RunPtr> getLayouter()

getRun

public MatrixRun getRun(Combination c)
Gets the MatrixRun in this build that corresponds to the given combination.


getRuns

public List<MatrixRun> getRuns()
Returns all MatrixRuns for this MatrixBuild.


getDynamic

public Object getDynamic(String token,
                         org.kohsuke.stapler.StaplerRequest req,
                         org.kohsuke.stapler.StaplerResponse rsp)
Overrides:
getDynamic in class Run<MatrixProject,MatrixBuild>

run

public void run()
Description copied from class: AbstractBuild
Invoked by Executor to performs a build.

Specified by:
run in interface Queue.Executable
Specified by:
run in interface Runnable
Specified by:
run in class AbstractBuild<MatrixProject,MatrixBuild>

getDownstreamRelationship

public Fingerprint.RangeSet getDownstreamRelationship(AbstractProject that)
Description copied from class: AbstractBuild
Gets the dependency relationship from this build (as the source) and that project (as the sink.)

Overrides:
getDownstreamRelationship in class AbstractBuild<MatrixProject,MatrixBuild>
Returns:
range of build numbers that represent which downstream builds are using this build. The range will be empty if no build of that project matches this, but it'll never be null.


Copyright © 2004-2013 Hudson. All Rights Reserved.