Package hudson.matrix
Class MatrixBuild
- All Implemented Interfaces:
ExtensionPoint,DescriptorByNameOwner,ModelObject,PersistenceRoot,Queue.Executable,Saveable,SearchableModelObject,SearchItem,AccessControlled,Comparable<MatrixBuild>,Runnable,WithConsoleUrl,HistoricalBuild,LazyBuildMixIn.LazyLoadingRun<MatrixProject,,MatrixBuild> ModelObjectWithContextMenu,RunWithSCM<MatrixProject,,MatrixBuild> OnMaster,org.kohsuke.stapler.StaplerProxy
Build of
MatrixProject.- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassObject that lives from the start ofMatrixBuildexecution to its end.final classUsed by view to render a ball forMatrixRun.Nested classes/interfaces inherited from class hudson.model.AbstractBuild
AbstractBuild.AbstractBuildExecution, AbstractBuild.AbstractRunner, AbstractBuild.DependencyChangeNested classes/interfaces inherited from class hudson.model.Run
Run.Artifact, Run.ArtifactList, Run.KeepLogBuildBadge, Run.RedirectUp, Run.RunExecution, Run.Runner, Run.RunnerAbortedException, Run.StatusSummarizer, Run.SummaryNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType -
Field Summary
Fields inherited from class hudson.model.AbstractBuild
buildEnvironmentsFields inherited from class hudson.model.Run
ARTIFACTS, charset, DELETE, description, duration, FEED_ADAPTER, FEED_ADAPTER_LATEST, LIST_CUTOFF, nextBuild, number, ORDER_BY_DATE, PERMISSIONS, previousBuild, project, QUEUE_ID_UNKNOWN, result, SKIP_PERMISSION_CHECK, timestamp, UPDATE, XSTREAM, XSTREAM2 -
Constructor Summary
ConstructorsConstructorDescriptionMatrixBuild(MatrixProject job) MatrixBuild(MatrixProject project, File buildDir) MatrixBuild(MatrixProject job, Calendar timestamp) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete build and its child builds.voiddoDoDeleteAll(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Deprecated.kept not to break REST clients.Returns the baseMatrixBuildthat this build originates from.Simple extension toAbstractBuild.getWhyKeepLog()required in order to have a warning which does not prevent the actual deletion.getDynamic(String token, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) LikegetRun(Combination), but do not approximate the result by earlier execution of the given combination (which is done for partial rebuild of the matrix.)Returns allMatrixRuns for exactly thisMatrixBuild.Gets theMatrixRunin this build that corresponds to the given combination.getRuns()Returns allMatrixRuns for thisMatrixBuild.booleanbooleanTrue if this build didn't do a full build and it is depending on the result of the previous build.voidrun()voidsetBaseBuild(MatrixBuild baseBuild) Sets the base build from which this build is derived.Methods inherited from class hudson.model.AbstractBuild
addAction, calculateCulprits, createReference, doStop, doStop, dropLinks, due, getAggregatedTestResultAction, getBuildVariableResolver, getBuildVariables, getBuiltOn, getBuiltOnStr, getChangeSet, getChangeSets, getCulpritIds, getCulprits, getDependencyChanges, getDownstreamBuilds, getDownstreamBuilds, getEnvironment, getEnvironments, getHudsonVersion, getModuleRoot, getModuleRoots, getNextBuild, getParentExecutable, getPersistentActions, getPreviousBuild, getProject, getRootBuild, getRunMixIn, getSensitiveBuildVariables, getTestResultAction, getTransitiveUpstreamBuilds, getUpstreamBuilds, getUpstreamRelationship, getUpstreamRelationshipBuild, getUpUrl, getWhyKeepLog, getWorkspace, hasChangeSetComputed, setBuiltOnStr, setWorkspace, shouldCalculateCulpritsMethods inherited from class hudson.model.Run
_this, canToggleLogKeep, compareTo, deleteArtifacts, doArtifact, doBuildNumber, doBuildStatus, doBuildTimestamp, doConfigSubmit, doConsoleText, doConsoleText, doDoDelete, doDoDelete, doProgressiveLog, doSubmitDescription, doToggleLogKeep, execute, fromExternalizableId, getAbsoluteUrl, getACL, getApi, getArtifactManager, getArtifacts, getArtifactsDir, getArtifactsUpTo, getBadgeActions, getBuildFingerprints, getBuildsOverThreshold, getBuildStatusSummary, getCause, getCauses, getCharacteristicEnvVars, getCharset, getConsoleUrl, getDescription, getDisplayName, getDuration, getDurationString, getDynamic, getEnvironment, getEnvVars, getEstimatedDuration, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getIconColor, getId, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNumber, getOneOffExecutor, getParameterValues, getParent, getPreviousBuildInProgress, getPreviousBuildsOverThreshold, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getPreviousSuccessfulBuild, getQueueId, getResult, getRootDir, getSearchUrl, getStartTimeInMillis, getTarget, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTransientActions, getUrl, hasCustomDisplayName, hasntStartedYet, isBuilding, isInProgress, isKeepLog, isLogUpdated, keepLog, keepLog, makeSearchIndex, onEndBuilding, onLoad, onStartBuilding, pickArtifactManager, reload, run, save, setDescription, setDisplayName, setQueueId, setResult, submit, toString, updateSymlinks, writeLogTo, writeReplace, writeWholeLogToMethods inherited from class hudson.model.Actionable
addOrReplaceAction, doContextMenu, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, removeAction, removeActions, replaceAction, replaceActionsMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2Methods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByNameMethods inherited from interface jenkins.model.HistoricalBuild
getBuildStatusIconClassName, getBuildStatusUrl, getTruncatedDescriptionMethods inherited from interface hudson.model.Queue.Executable
getConsoleUrl, getEstimatedDuration, getParent, toStringMethods inherited from interface jenkins.scm.RunWithSCM
hasParticipantMethods inherited from interface hudson.search.SearchItem
getSearchIcon
-
Constructor Details
-
MatrixBuild
- Throws:
IOException
-
MatrixBuild
-
MatrixBuild
- Throws:
IOException
-
-
Method Details
-
readResolve
-
delete
Delete build and its child builds.- Overrides:
deletein classRun<MatrixProject,MatrixBuild> - Throws:
IOException- Since:
- TODO
-
doDoDeleteAll
@Deprecated public void doDoDeleteAll(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException Deprecated.kept not to break REST clients.Deletes the build and all matrix configurations in this build when the button is pressed.- Throws:
IOExceptionjakarta.servlet.ServletException
-
getLayouter
-
setBaseBuild
Sets the base build from which this build is derived.- Since:
- 1.416
-
getBaseBuild
Returns the baseMatrixBuildthat this build originates from.If this build is a partial build, unexecuted
MatrixRuns are delegated to this build number. -
getRun
Gets theMatrixRunin this build that corresponds to the given combination. -
getExactRun
LikegetRun(Combination), but do not approximate the result by earlier execution of the given combination (which is done for partial rebuild of the matrix.) -
getRuns
Returns allMatrixRuns for thisMatrixBuild. -
getExactRuns
Returns allMatrixRuns for exactly thisMatrixBuild.Unlike
getRuns(), this method excludes those runs that didn't run and got inherited.- Since:
- 1.413
-
getDeleteMessage
Simple extension toAbstractBuild.getWhyKeepLog()required in order to have a warning which does not prevent the actual deletion.- Returns:
- message displayed deleting build
-
isLinkedBy
- Returns:
- True if another
MatrixBuildbuild (passed as a parameter) depends on this build. - Since:
- 1.481
-
isPartial
public boolean isPartial()True if this build didn't do a full build and it is depending on the result of the previous build. -
getDynamic
public Object getDynamic(String token, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) - Overrides:
getDynamicin classRun<MatrixProject,MatrixBuild>
-
run
public void run()- Specified by:
runin interfaceQueue.Executable- Specified by:
runin interfaceRunnable- Specified by:
runin classAbstractBuild<MatrixProject,MatrixBuild>
-
getDownstreamRelationship
- Overrides:
getDownstreamRelationshipin classAbstractBuild<MatrixProject,MatrixBuild>
-