Hi,
Is it possible to set array value on Repository settings > Pipelines > Environment variables?
I tried:
(foo bar)
But doesn't work.
Environment variables can have any value, it depends upon how you use them in your scripts. in simple shell scripts you can set a variable to a sequence separated by spaces (the default, lookup the IFS shell variable: https://en.wikipedia.org/wiki/Internal_field_separator) and then process them as a list, e.g.
F="a b c"for i in ${F}do echo $idone
When you set the variables value in pipelines, there is no need for the '"'s - only when you set it in the shell.
Thanks Matthew!
It looks like you're new here. Sign in or register to get started.