|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.Actionable
hudson.model.Run<P,R>
hudson.model.AbstractBuild<P,B>
hudson.model.Build<P,B>
public abstract class Build<P extends Project<P,B>,B extends Build<P,B>>
A build of a 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.
Nested Class Summary | |
---|---|
protected class |
Build.BuildExecution
|
protected class |
Build.RunnerImpl
Deprecated. as of 1.467 Please use Build.BuildExecution |
Nested classes/interfaces inherited from class hudson.model.AbstractBuild |
---|
AbstractBuild.AbstractBuildExecution, AbstractBuild.AbstractRunner, AbstractBuild.DependencyChange |
Nested classes/interfaces inherited from class hudson.model.Run |
---|
Run.Artifact, Run.ArtifactList, Run.KeepLogBuildBadge, Run.RedirectUp, Run.RunExecution, Run.Runner, Run.RunnerAbortedException, Run.Summary |
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu |
---|
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.MenuItem |
Field Summary |
---|
Fields inherited from class hudson.model.AbstractBuild |
---|
buildEnvironments |
Fields inherited from class hudson.model.Run |
---|
ARTIFACTS, charset, DELETE, description, duration, FEED_ADAPTER, FEED_ADAPTER_LATEST, ID_FORMATTER, LIST_CUTOFF, number, ORDER_BY_DATE, PERMISSIONS, project, result, state, timestamp, TREE_CUTOFF, UPDATE, XSTREAM, XSTREAM2 |
Fields inherited from interface hudson.model.Saveable |
---|
NOOP |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class hudson.model.Actionable |
---|
doContextMenu, getAction, getAction, getActions, getActions |
Methods inherited from class hudson.model.AbstractModelObject |
---|
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface hudson.model.Queue.Executable |
---|
getEstimatedDuration, getParent, toString |
Constructor Detail |
---|
protected Build(P project) throws IOException
IOException
protected Build(P job, Calendar timestamp)
protected Build(P project, File buildDir) throws IOException
IOException
Method Detail |
---|
public void run()
AbstractBuild
Executor
to performs a build.
run
in interface Queue.Executable
run
in interface Runnable
run
in class AbstractBuild<P extends Project<P,B>,B extends Build<P,B>>
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) protected Run.Runner createRunner()
run()
method by calling Run.execute(RunExecution)
with
proper execution object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |