Skip to content

Abort

Abort (abort)

Abort the job if the condition is met.

Control json

Minimal example

actions:
- abort:
condition: ""
message: ~
JSON
{
"actions": [
{
"abort": {
"condition": "",
"message": null
}
}
]
}

Contents

Behaviour

Behaviour
FieldTypeRequiredDescription
messagestringEmit this log warning when the job aborts.

Condition

Condition
FieldTypeRequiredDescription
conditionlua-expression (string)Run this action if the specified condition is met.
Examples: 2 * count()

General

General
FieldTypeRequiredDescription
descriptionstringdescribe this step.