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

Fields

FieldTypeRequiredDescription
condition Conditionlua-expression (string)Run this action if the specified condition is met.
Examples: 2 * count()
message BehaviourstringEmit this log warning when the job aborts.
description Generalstringdescribe this step.

General

Show fields
FieldTypeRequiredDescription
descriptionstringdescribe this step.

Condition

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

Behaviour

Show fields
FieldTypeRequiredDescription
messagestringEmit this log warning when the job aborts.