Skip to main content
Version: 5.11.x

ConditionExpressionContext

Context keys that can be resolved during a conditional expression evaluation. In addition to the values below, the condition has access to environment variables.

Table of contents

Properties

Properties

WORKFLOWS_TASK_RESULT

Optional WORKFLOWS_TASK_RESULT: string

The result of the task that ran before the evaluation of the expression.

Can resolve to 'success' or 'error'.


WORKFLOWS_TASK_TYPE

Optional WORKFLOWS_TASK_TYPE: string

The type of task that the condition is running against.


WORKFLOWS_TASK_ID

Optional WORKFLOWS_TASK_ID: string

The ID of the task the condition is running against.


WORKFLOWS_BRANCH

Optional WORKFLOWS_TASK_BRANCH: string

The branch name that the current build is running on. Is a mirror of the underlying CI hosts env var of the same information.


WORKFLOWS_TAG

Optional WORKFLOWS_TASK_TAG: string

The git tag name that the current build is running on, if triggered by a tag. Is a mirror of the underlying CI hosts env var of the same information.