mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
doc improvement.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22266 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
dc11d862ec
commit
6fb51882fc
1 file changed
+35
@@ -29,6 +29,8 @@ import hudson.tasks.BuildStep;
|
||||
import hudson.tasks.BuildTrigger;
|
||||
import hudson.tasks.BuildWrapper;
|
||||
import hudson.tasks.Builder;
|
||||
import hudson.tasks.Recorder;
|
||||
import hudson.tasks.Notifier;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
@@ -41,6 +43,39 @@ import java.util.logging.Logger;
|
||||
/**
|
||||
* A build of a {@link Project}.
|
||||
*
|
||||
* <h2>Steps of a build</h2>
|
||||
* <p>
|
||||
* Roughly speaking, a {@link Build} goes through the following stages:
|
||||
*
|
||||
* <dl>
|
||||
* <dt>SCM checkout
|
||||
* <dd>Hudson decides which directory to use for a build, then the source code is checked out
|
||||
*
|
||||
* <dt>Pre-build steps
|
||||
* <dd>Everyone gets their {@link BuildStep#prebuild(AbstractBuild, BuildListener)} invoked
|
||||
* to indicate that the build is starting
|
||||
*
|
||||
* <dt>Build wrapper set up
|
||||
* <dd>{@link BuildWrapper#setUp(AbstractBuild, Launcher, BuildListener)} is invoked. This is normally
|
||||
* to prepare an environment for the build.
|
||||
*
|
||||
* <dt>Builder runs
|
||||
* <dd>{@link Builder#perform(AbstractBuild, Launcher, BuildListener)} is invoked. This is where
|
||||
* things that are useful to users happen, like calling Ant, Make, etc.
|
||||
*
|
||||
* <dt>Recorder runs
|
||||
* <dd>{@link Recorder#perform(AbstractBuild, Launcher, BuildListener)} is invoked. This is normally
|
||||
* to record the output from the build, such as test results.
|
||||
*
|
||||
* <dt>Notifier runs
|
||||
* <dd>{@link Notifier#perform(AbstractBuild, Launcher, BuildListener)} is invoked. This is normally
|
||||
* to send out notifications, based on the results determined so far.
|
||||
* </dl>
|
||||
*
|
||||
* <p>
|
||||
* And beyond that, the build is considered complete, and from then on {@link Build} object is there to
|
||||
* keep the record of what happened in this build.
|
||||
*
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public abstract class Build <P extends Project<P,B>,B extends Build<P,B>>
|
||||
|
||||
Reference in new issue
Block a user