worker export <varname> <value>
Inside a step script (https://ovh.github.io/cds/docs/actions/builtin-script/), you can create a build variable with the worker command:
worker export foo bar
then, you can use new build variable:
echo "{{.cds.build.foo}}"
You can use the build variable in :
{{.cds.build.varname}}
{{.cds.build.varname}}
{{.workflow.pipelineName.build.varname}}
with pipelineName
the name of the pipeline in your workflowworker export