Hi,
Is it possible to set array value on Repository settings > Pipelines > Environment variables?
I tried:
(foo bar)
But doesn't work.
Community moderators have prevented the ability to post new answers.
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 $i
done
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.