The build process has been refactored in Bamboo 2.0 into a series of BuildTasks
, each responsible for a particular part of the build process. Each build task has the ability to store a BuildContext
. A BuildContext represents the definition of the part of the build process that the build task is responsible for.
The steps of a build process are described below:
CheckoutUpdateForBuild
task. The Repository#retrieveSourceCode
is called. If the Repository is RepositoryEventAware
the appropriate methods will be called. The agent checks if the repository has changed since the last build and clears the source directory if it has.PrepareBuildTask
. This begins streaming the logs back to the server. The agent also runs the CustomPreBuildAction
plugin point. From this point on, the build will be saved.Builder#executeBuild
. After the Builder has been run, all the CustomBuildProcessors
are run. Timer is stopped.CustomBuildProcessorServer
, checks if the build has passed and saves and indexes the build result. The server also fires off the BuildCompletedEvent
and PostBuildCompletedEvent
events.Rate this page: