SetVariables​Set​Variables

Allow to set execution variables. These variables will then be available via the {{ vars.name }} expression.

yaml
type: "io.kestra.plugin.core.execution.SetVariables"

Set variables

yaml
id: variables
namespace: company.team

variables:
  name: World

tasks:
  - id: set_vars
    type: io.kestra.plugin.core.execution.SetVariables
    variables:
      message: Hello
      name: Loïc
  - id: hello
    type: io.kestra.plugin.core.log.Log
    message: "{{ vars.message }} {{ vars.name }}"
Properties

The variables

Default true

Whether to overwrite existing variables