Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ciRetryCause

RetryCause

Failure types that can be used with Retry.on.

External resources

Entries

Always

Retry on any failure (default).

UnknownFailure

Retry when the failure reason is unknown.

ScriptFailure

Retry when the script failed or the runner failed to pull the Docker image.

ApiFailure

Retry on API failure.

StuckOrTimeoutFailure

Retry when the job got stuck or timed out.

RunnerSystemFailure

Retry if there is a runner system failure (for example, job setup failed).

RunnerUnsupported

Retry if the runner is unsupported.

StaleSchedule

Retry if a delayed job could not be executed.

JobExecutionTimeout

Retry if the script exceeded the maximum execution time set for the job.

ArchivedFailure

Retry if the job is archived and can't be run.

UnmetPrerequisites

Retry if the job failed to complete prerequisite tasks.

SchedulerFailure

Retry if the scheduler failed to assign the job to a runner.

DataIntegrityFailure

Retry if there is an unknown job problem.

Properties

name

val name: String

ordinal

val ordinal: Int

Functions

toYaml

open override fun toYaml(): Yaml.Scalar.StringLiteral

Converts this object into a Yaml object.

valueOf

fun valueOf(value: String): RetryCause

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

values

Returns an array containing the constants of this enum type, in the order they're declared.