retry

fun retry(max: Int, configuration: Retry.() -> Unit = {})(source)

Configures how many times a job is retried if it fails. If not defined, defaults to 0 and jobs do not retry.

Example

val test by job {
retry(2) {
whenType(RetryWhen.RunnerSystemFailure)
onExitCode(137)
}
}

External resources