Skip to content

Variable Actions ​

General ​

set ​

Sets the value of an existing pipeline variable by name.

Returns: true when the variable is updated, undefined if not found.

ParameterTypeRequiredDefaultDescription
namestring✓—Variable name (letters, numbers, underscores; prefix with "_global." for global scope).
valueany✓—Value to assign to the variable.
yaml
# Overwrite a task variable mid-pipeline — useful for tracking loop state or computed values
- group: variable
  name: set
  params:
    name: greeting
    value: Hello Tipeline

Released under the Apache License 2.0.