
Core Plugins and tasks SetVariables
CertifiedSet execution-scoped variables.
Core Plugins and tasks SetVariables
Certified
Set execution-scoped variables.
Renders a map and merges it into the execution variables, making them available via {{ vars.* }}. By default, existing keys are overwritten; set overwrite to false to fail when a key already exists.
Deep merges preserve nested maps rather than replacing them entirely.
yaml
type: io.kestra.plugin.core.execution.SetVariablesExamples
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
variables *Requiredobject
The variables
overwrite booleanstring
Default
trueFlag specifying whether to overwrite existing variables
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.