CI run step output variable is not working with multiline string values
complete
P
Pink Salamander
Currently the multiline string values are not supported with the CI run step output variable. We need to be able to use multiline string as the value for run step output variable
Log In
N
Nofar Bluestein
Hey, Support was added with v 1.73 for cloning commit sha when running a pipeline configured to clone using codebase settings. Both long and short commit SHAs are supported.
View release notes : https://developer.harness.io/release-notes/continuous-integration#version-173
Regards,
Nofar Bluestein
CI release team
W
Weekly Capybara
Nofar Bluestein Thank you for the update, Nofar! We will try out this new functionality.
N
Nofar Bluestein
complete
N
Nofar Bluestein
Hey ,
We the recent CI release (v 1.73) , we've added support for multi-line output variables. This require enabling the the feature flag CI_NEW_VERSION_GODOTENV. Please reach out to support to get this enabled in your account.
For more information see https://developer.harness.io/docs/continuous-integration/use-ci/run-step-settings/#output-variables
Regards,
Nofar Bluestein
CI product team
Y
Yucca Grouse
Nofar Bluestein is this only for CI module ? or applicable for CD also? We have output step variables there as well.
Y
Yucca Grouse
Any update on when this will be released for the customers ?
This post was marked as
in progress
Canny AI
Merged in a post:
NG CD Container Step Multiline Output Var Failure
M
Melodic Sturgeon
When outputting a multiline variable from a Container step, Harness behaves strangely and does not populate the variable at all. If you look at the Output tab you can see the last line of the var showing up to an empty var name.
N
Nofar Bluestein
next fiscal quarter
N
Nofar Bluestein
planned
Q
Quinacridone magenta Finch
Closest I got was this, but this doesnt work for getting file contents
#!/bin/bash
Declare a variable to store the output
output=""
output+="Line1\n"
output+="Line2\n"
output+="Line3\n"
Export the output variable
export OUTPUT_LIST=$(echo -e "$output")
This post was marked as
in progress
Load More
→