hudson.model
Class Build.BuildExecution

java.lang.Object
  extended by hudson.model.Run.RunExecution
      extended by hudson.model.Run.Runner
          extended by hudson.model.AbstractBuild.AbstractBuildExecution
              extended by hudson.model.AbstractBuild.AbstractRunner
                  extended by hudson.model.Build.BuildExecution
Direct Known Subclasses:
Build.RunnerImpl
Enclosing class:
Build<P extends Project<P,B>,B extends Build<P,B>>

protected class Build.BuildExecution
extends AbstractBuild.AbstractRunner


Field Summary
 
Fields inherited from class hudson.model.AbstractBuild.AbstractBuildExecution
launcher, listener
 
Constructor Summary
protected Build.BuildExecution()
           
 
Method Summary
 void cleanUp(BuildListener listener)
          Performs final clean up action.
protected  Result doRun(BuildListener listener)
          The portion of a build that is specific to a subclass of AbstractBuild 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Build.BuildExecution

protected Build.BuildExecution()
Method Detail

doRun

protected Result doRun(BuildListener listener)
                throws Exception
Description copied from class: AbstractBuild.AbstractBuildExecution
The portion of a build that is specific to a subclass of AbstractBuild goes here.

Specified by:
doRun in class AbstractBuild.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(BuildListener listener)
           throws IOException,
                  InterruptedException
Specified by:
post2 in class AbstractBuild.AbstractBuildExecution
Throws:
IOException
InterruptedException
See Also:
AbstractBuild.AbstractBuildExecution.post(BuildListener)

cleanUp

public void cleanUp(BuildListener listener)
             throws Exception
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.

Overrides:
cleanUp in class AbstractBuild.AbstractBuildExecution
Throws:
Exception


Copyright © 2004-2013. All Rights Reserved.