Package hudson.model
Class Build.BuildExecution
java.lang.Object
Run<JobT,RunT>.RunExecution
Run<P,R>.Runner
AbstractBuild<P,R>.AbstractBuildExecution
AbstractBuild<P,B>.AbstractRunner
hudson.model.Build.BuildExecution
- Direct Known Subclasses:
Build.RunnerImpl
-
Field Summary
Fields inherited from class hudson.model.AbstractBuild.AbstractBuildExecution
launcher, listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanUp
(BuildListener listener) Performs final clean up action.protected Result
doRun
(BuildListener listener) The portion of a build that is specific to a subclass ofAbstractBuild
goes here.void
post2
(BuildListener listener) Methods inherited from class hudson.model.AbstractBuild.AbstractBuildExecution
createLauncher, decideWorkspace, defaultCheckout, getCurrentNode, getLauncher, getListener, perform, performAllBuildStep, performAllBuildStep, performAllBuildSteps, performAllBuildSteps, post, preBuild, preBuild, preBuild, run
Methods inherited from class hudson.model.Run.RunExecution
getAttributes, getBuild, getProject
-
Constructor Details
-
BuildExecution
protected BuildExecution()
-
-
Method Details
-
doRun
Description copied from class:AbstractBuild.AbstractBuildExecution
The portion of a build that is specific to a subclass ofAbstractBuild
goes here.- Specified by:
doRun
in classAbstractBuild<P extends Project<P,
B>, B extends Build<P, B>>.AbstractBuildExecution - Returns:
- null to continue the build normally (that means the doRun method itself run successfully) Return a non-null value to abort the build right there with the specified result code.
- Throws:
Exception
-
post2
- Specified by:
post2
in classAbstractBuild<P extends Project<P,
B>, B extends Build<P, B>>.AbstractBuildExecution - Throws:
IOException
InterruptedException
- See Also:
-
cleanUp
Description copied from class:Run.RunExecution
Performs final clean up action.This method is called after
Run.RunExecution.post(BuildListener)
, after the build result is fully finalized. This is the point where the build is already considered completed.Among other things, this is often a necessary pre-condition before invoking other builds that depend on this build.
-