Return a value for debugging purposes.
This task is mostly useful for troubleshooting.
It allows you to return some templated functions, inputs or outputs. In some cases you might want to trim all white spaces from the rendered values so downstream tasks can use them properly
yaml
type: "io.kestra.plugin.core.debug.Return"
Examples
yaml
id: debug_value
namespace: company.team
tasks:
- id: return
type: io.kestra.plugin.core.debug.Return
format: "{{ task.id }} > {{ taskrun.startDate }}"
yaml
id: "return"
type: "io.kestra.plugin.core.debug.Return"
id: compute_header
type: io.kestra.plugin.core.debug.Return
format: >-
{%- if inputs.token is not empty -%}
Bearer {{ inputs.token }}
{%- elseif inputs.username is not empty and inputs.password is not empty -%}
Basic {{ (inputs.username + ':' + inputs.password) | base64encode }}
{%- endif -%}
Properties
format string
The templated string to render.
Outputs
value string
The generated string.