Retry Build Trigger
Triggers the build if the previous build failed after a specified time delay
Example. Trigger a new build if the last build failed. Wait at least for 30 seconds before adding a new build to the queue. Move the newly triggered build to the top of the queue.
buildType {
// Other Build Type settings ...
triggers {
// Other Triggers ...
retryBuild {
delaySeconds = 30
moveToTheQueueTop = true
}
Content copied to clipboard }
}
Example. Trigger a new build if the last build in the branch with prefix 'feature/' failed. Retry only once.
buildType {
// Other Build Type settings ...
triggers {
// Other Triggers ...
retryBuild {
attempts = 1
branchFilter = "+:feature/*"
}
Content copied to clipboard }
}
See also
Properties
Branch filter specifies the set of branches where Retry Build Trigger should attempt to retry builds
Parameters that are added to triggered builds
Seconds to wait before adding build to queue
Whether the build should be triggered with clean checkout
When the enforceCleanCheckout is set to true specifies whether the clean checkout should also be applied to all dependencies.
Move triggered build to the queue top
Whether to trigger a new build with the same revisions or not
Functions
Configures build parameters that are applied to triggered builds
Deletes all configured build parameters
Copies parameters of this object to the specified target
Validates this object and reports found errors to the provided consumer