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.DependencyChange
Run.Artifact, Run.ArtifactList, Run.KeepLogBuildBadge, Run.RedirectUp, Run.RunExecution, Run.Runner, Run.RunnerAbortedException, Run.StatusSummarizer, Run.Summary
ExtensionPoint.LegacyInstancesAreScopedToHudson
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem
buildEnvironments
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, 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(hudson.model.Run.RunExecution) with
proper execution object. |
void |
run()
Invoked by
Executor to performs a build. |
addAction, calculateCulprits, createReference, doStop, doStop, dropLinks, due, getAggregatedTestResultAction, getBuildVariableResolver, getBuildVariables, getBuiltOn, getBuiltOnStr, getChangeSet, getChangeSets, getCulpritIds, 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, setBuiltOnStr, setWorkspace, shouldCalculateCulprits
_this, canToggleLogKeep, compareTo, delete, deleteArtifacts, doArtifact, doBuildNumber, doBuildStatus, doBuildTimestamp, doConfigSubmit, doConsoleText, doDoDelete, doProgressiveLog, doSubmitDescription, doToggleLogKeep, execute, fromExternalizableId, getAbsoluteUrl, getACL, getApi, getArtifactManager, getArtifacts, getArtifactsDir, getArtifactsUpTo, getBadgeActions, getBuildFingerprints, getBuildsOverThreshold, getBuildStatusIconClassName, getBuildStatusSummary, getBuildStatusUrl, getCause, getCauses, getCharacteristicEnvVars, getCharset, getDescription, 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, getTarget, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTransientActions, getTruncatedDescription, 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, writeWholeLogTo
addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, removeAction, removeActions, replaceAction, replaceActions
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEstimatedDuration, getParent, toString
hasParticipant
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
getDescriptorByName
protected Build(P project) throws IOException
IOException
protected Build(P project, File buildDir) throws IOException
IOException
public void run()
AbstractBuild
Executor
to performs a build.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Deprecated protected Run.Runner createRunner()
run()
method by calling Run.execute(hudson.model.Run.RunExecution)
with
proper execution object.Copyright © 2004–2021. All rights reserved.