The CloudBees Build Strategies plugin adds custom Branch API build strategies that assist in the creation and management of Multibranch Projects and Organization Folders. It manages repositories, organizations, and teams that contain numerous pull requests, branches, and tags.
Manage builds during initial indexing and prevent build storms
During the initial indexing of a Multibranch Pipeline or Organization Folder, many branches, pull requests, and tags may result in the creation of corresponding Pipelines. These Pipelines can be scheduled to build simultaneously, causing a “build storm”, which creates a massive load on the Jenkins instance. Build strategies help control build triggering behavior.
|
These build strategies cannot be used with any other configured build strategy. |
To enable a build strategy, perform the following steps:
-
Sign on to the controller.
-
From the dashboard, select or .
-
For Multibranch Pipelines:
-
Scroll down to Branch Sources.
-
Select Add source, and then choose your source.
-
Scroll down to Build Strategies.
-
-
For Organization Folders, scroll down to Build Strategies.
-
-
Select Add and choose the desired build strategy. All build strategies create Pipelines for branches, pull requests, and tags during indexing, but control when builds are triggered:
-
Do not build old commits: Builds are not triggered if the corresponding SCM commit can be identified and its commit timestamp is older than the specified age (by default, seven days). If the system cannot determine the commit timestamp, it permits a build and may print details to the branch indexing log.
-
Initial Index Build Prevention: Builds are not triggered during initial indexing. Pipelines remain inactive until a new change has been pushed to the corresponding branch, pull request, or tag. Subsequent Multibranch or Organization scans will still not trigger builds. When activity occurs on the branch, pull request, or tag, the Pipeline builds automatically.
Changing the repository source behaviors or project recognizers resets indexing to its default settings.
-
-
Select Save to apply your changes.