Multi-line variable gets truncated with cf_export
Exporting multi line variables to subsequent pipeline steps
Every Codefresh pipeline has access to the cf_export utility that allows you to pass environment variables from one step to the next.
You have a pipeline that is trying to export a multi-line variable with
If you run this pipeline then in the step
test the value of the variable is truncated and only
line1 will appear.
You can use a workaround by encoding the variable with
base64 first. This will handle all strange characters in the exported variable.
If you run this pipeline, the
test step will correctly print
line1 line2 line3