This article discusses the difference examples and recommended way to use thew concatenation of variables.
Use the below expression for concatenation in pipeline/stage having a suffix :
Use the below expression for concatenation in pipeline/stage having a prefix :
<+"releases/dctrn/" + <+stage.name>>
<+"releases/dctrn/" + <+stage.name.concat("/values.yaml")>>
Usage of the above example for Suffix and Prefix using the stage variables :
Printing the variables using the stage variables with suffix and prefix in a shell script :
Out of the above variables resolving :
<+pipeline.variable.var1>_suffix works if you use directly in the shell script but we don’t recommend as its not uniform across Harness Hence we recommend to use
+as mentioned in doc.