Package hudson.model
Class Build.BuildExecution
- java.lang.Object
-
- hudson.model.Run.RunExecution
-
- hudson.model.Run.Runner
-
- hudson.model.AbstractBuild.AbstractBuildExecution
-
- hudson.model.AbstractBuild.AbstractRunner
-
- hudson.model.Build.BuildExecution
-
-
Field Summary
-
Fields inherited from class hudson.model.AbstractBuild.AbstractBuildExecution
launcher, listener
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuildExecution()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUp(BuildListener listener)Performs final clean up action.protected ResultdoRun(BuildListener listener)The portion of a build that is specific to a subclass ofAbstractBuildgoes here.voidpost2(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
-
-
-
-
Method Detail
-
doRun
protected Result doRun(@NonNull BuildListener listener) throws Exception
Description copied from class:AbstractBuild.AbstractBuildExecutionThe portion of a build that is specific to a subclass ofAbstractBuildgoes here.- Specified by:
doRunin classAbstractBuild.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
public void post2(@NonNull BuildListener listener) throws IOException, InterruptedException- Specified by:
post2in classAbstractBuild.AbstractBuildExecution- Throws:
IOExceptionInterruptedException- See Also:
AbstractBuild.AbstractBuildExecution.post(BuildListener)
-
cleanUp
public void cleanUp(@NonNull BuildListener listener) throws ExceptionDescription copied from class:Run.RunExecutionPerforms 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.
- Overrides:
cleanUpin classAbstractBuild.AbstractBuildExecution- Throws:
Exception
-
-