hudson.matrix
Class MatrixRun

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<P,B>
                  extended by hudson.model.Build<MatrixConfiguration,MatrixRun>
                      extended by hudson.matrix.MatrixRun
All Implemented Interfaces:
ExtensionPoint, DescriptorByNameOwner, ModelObject, PersistenceRoot, Queue.Executable, Saveable, SearchableModelObject, SearchItem, AccessControlled, Comparable<MatrixRun>, Runnable

public class MatrixRun
extends Build<MatrixConfiguration,MatrixRun>

Execution of MatrixConfiguration.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
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
MatrixRun(MatrixConfiguration job)
           
MatrixRun(MatrixConfiguration job, Calendar timestamp)
           
MatrixRun(MatrixConfiguration project, File buildDir)
           
 
Method Summary
 void checkPermission(Permission p)
          Convenient short-cut for getACL().checkPermission(permission)
 String getDisplayName()
           
 MatrixConfiguration getParent()
          The project this build is for.
 MatrixBuild getParentBuild()
          Gets the MatrixBuild that has the same build number.
 String getUpUrl()
          Used to render the side panel "Back to project" link.
 String getWhyKeepLog()
          If the parent MatrixBuild is kept, keep this record too.
 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, getDownstreamRelationship, getEnvironment, getHudsonVersion, getModuleRoot, getModuleRoots, getProject, getSensitiveBuildVariables, getTestResultAction, getTransitiveUpstreamBuilds, getUpstreamBuilds, getUpstreamRelationship, getUpstreamRelationshipBuild, getWorkspace, hasChangeSetComputed, hasParticipant
 
Methods inherited from class hudson.model.Run
addAction, 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, getDuration, getDurationString, getDynamic, getEnvironment, getEnvVars, getEstimatedDuration, getExecutor, getExternalizableId, getFullDisplayName, getFullName, getHasArtifacts, getIconColor, getId, getIDFormatter, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNextBuild, getNumber, 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, toString
 

Constructor Detail

MatrixRun

public MatrixRun(MatrixConfiguration job)
          throws IOException
Throws:
IOException

MatrixRun

public MatrixRun(MatrixConfiguration job,
                 Calendar timestamp)

MatrixRun

public MatrixRun(MatrixConfiguration project,
                 File buildDir)
          throws IOException
Throws:
IOException
Method Detail

getUpUrl

public String getUpUrl()
Description copied from class: AbstractBuild
Used to render the side panel "Back to project" link.

In a rare situation where a build can be reached from multiple paths, returning different URLs from this method based on situations might be desirable.

If you override this method, you'll most likely also want to override Run.getDisplayName().

Overrides:
getUpUrl in class AbstractBuild<MatrixConfiguration,MatrixRun>

getParentBuild

public MatrixBuild getParentBuild()
Gets the MatrixBuild that has the same build number.

Returns:
null if no such build exists, which happens when the module build is manually triggered.

checkPermission

public void checkPermission(Permission p)
Description copied from interface: AccessControlled
Convenient short-cut for getACL().checkPermission(permission)

Specified by:
checkPermission in interface AccessControlled
Overrides:
checkPermission in class Run<MatrixConfiguration,MatrixRun>

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface ModelObject
Overrides:
getDisplayName in class Run<MatrixConfiguration,MatrixRun>

getWhyKeepLog

public String getWhyKeepLog()
If the parent MatrixBuild is kept, keep this record too.

Overrides:
getWhyKeepLog in class AbstractBuild<MatrixConfiguration,MatrixRun>

getParent

public MatrixConfiguration getParent()
Description copied from class: Run
The project this build is for.

Specified by:
getParent in interface Queue.Executable
Overrides:
getParent in class Run<MatrixConfiguration,MatrixRun>

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
Overrides:
run in class Build<MatrixConfiguration,MatrixRun>


Copyright © 2004-2013 Hudson. All Rights Reserved.