public abstract class Build<P extends Project<P,B>,B extends Build<P,B>> extends AbstractBuild<P,B>
Project.
Roughly speaking, a Build goes through the following stages:
BuildStep.prebuild(AbstractBuild, BuildListener) invoked
to indicate that the build is starting
BuildWrapper.setUp(AbstractBuild, Launcher, BuildListener) is invoked. This is normally
to prepare an environment for the build.
BuildStepCompatibilityLayer.perform(AbstractBuild, Launcher, BuildListener) is invoked. This is where
things that are useful to users happen, like calling Ant, Make, etc.
BuildStepCompatibilityLayer.perform(AbstractBuild, Launcher, BuildListener) is invoked. This is normally
to record the output from the build, such as test results.
BuildStepCompatibilityLayer.perform(AbstractBuild, Launcher, BuildListener) is invoked. This is normally
to send out notifications, based on the results determined so far.
And beyond that, the build is considered complete, and from then on Build object is there to
keep the record of what happened in this build.
| Modifier and Type | Class and Description |
|---|---|
protected class |
Build.BuildExecution |
protected class |
Build.RunnerImpl
Deprecated.
as of 1.467
Please use
Build.BuildExecution |
AbstractBuild.AbstractBuildExecution, AbstractBuild.AbstractRunner, AbstractBuild.DependencyChangeRun.Artifact, Run.ArtifactList, Run.KeepLogBuildBadge, Run.RedirectUp, Run.RunExecution, Run.Runner, Run.RunnerAbortedException, Run.StatusSummarizer, Run.SummaryExtensionPoint.LegacyInstancesAreScopedToHudsonModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItembuildEnvironmentsARTIFACTS, charset, DELETE, description, duration, FEED_ADAPTER, FEED_ADAPTER_LATEST, LIST_CUTOFF, nextBuild, number, ORDER_BY_DATE, PERMISSIONS, previousBuild, project, QUEUE_ID_UNKNOWN, result, timestamp, TREE_CUTOFF, UPDATE, XSTREAM, XSTREAM2| Modifier | Constructor and Description |
|---|---|
protected |
Build(P project)
Creates a new build.
|
protected |
Build(P job,
Calendar timestamp) |
protected |
Build(P project,
File buildDir)
Loads a build from a log file.
|
| Modifier and Type | Method and Description |
|---|---|
protected Run.Runner |
createRunner()
Deprecated.
as of 1.467
Override the
run() method by calling Run.execute(RunExecution) with
proper execution object. |
void |
run()
Invoked by
Executor to performs a build. |
addAction, createReference, doStop, doStop, dropLinks, due, getAggregatedTestResultAction, getBuildFingerprints, getBuildVariableResolver, getBuildVariables, getBuiltOn, getBuiltOnStr, getChangeSet, getChangeSets, getCulprits, getDependencyChanges, getDownstreamBuilds, getDownstreamBuilds, getDownstreamRelationship, getEnvironment, getEnvironments, getHudsonVersion, getModuleRoot, getModuleRoots, getNextBuild, getPersistentActions, getPreviousBuild, getProject, getRootBuild, getRunMixIn, getSensitiveBuildVariables, getTestResultAction, getTransitiveUpstreamBuilds, getUpstreamBuilds, getUpstreamRelationship, getUpstreamRelationshipBuild, getUpUrl, getWhyKeepLog, getWorkspace, hasChangeSetComputed, hasParticipant, setBuiltOnStr, setWorkspace_this, canToggleLogKeep, checkPermission, compareTo, delete, deleteArtifacts, doArtifact, doBuildNumber, doBuildStatus, doBuildTimestamp, doConfigSubmit, doConsoleText, doDoDelete, doProgressiveLog, doSubmitDescription, doToggleLogKeep, execute, fromExternalizableId, getAbsoluteUrl, getACL, getApi, getArtifactManager, getArtifacts, getArtifactsDir, getArtifactsUpTo, getBadgeActions, getBuildStatusIconClassName, getBuildStatusSummary, getBuildStatusUrl, getCause, getCauses, getCharacteristicEnvVars, getCharset, getDescription, getDescriptorByName, getDisplayName, getDuration, getDurationString, getDynamic, getEnvironment, getEnvVars, getEstimatedDuration, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getIconColor, getId, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNumber, getOneOffExecutor, getParent, getPreviousBuildInProgress, getPreviousBuildsOverThreshold, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getPreviousSuccessfulBuild, getQueueId, getResult, getRootDir, getSearchUrl, getStartTimeInMillis, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTransientActions, getTruncatedDescription, getUrl, hasCustomDisplayName, hasntStartedYet, hasPermission, isBuilding, isInProgress, isKeepLog, isLogUpdated, keepLog, keepLog, makeSearchIndex, onEndBuilding, onLoad, onStartBuilding, pickArtifactManager, reload, run, save, setDescription, setDisplayName, setQueueId, setResult, submit, toString, updateSymlinks, writeLogTo, writeWholeLogTodoContextMenu, getAction, getAction, getActions, getActions, getAllActions, replaceActiongetSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEstimatedDuration, getParent, toStringprotected Build(P project) throws IOException
IOExceptionprotected Build(P project, File buildDir) throws IOException
IOExceptionpublic void run()
AbstractBuildExecutor to performs a build.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Deprecated protected Run.Runner createRunner()
run() method by calling Run.execute(RunExecution) with
proper execution object.Copyright © 2019. All rights reserved.