Environment Variables are being replaced in this
ninjaprox opened this issue · 3 comments
ninjaprox commented
I tried with this simple case.
Script content
echo $SECRET_KEY
Secret environment variable SECRET_KEY=something
.
Then I got this in build log
echo something
something
As it states Environment Variables won't be replaced in this input.
, I understand that the variable will not be replaced in the script content and what it supposes to be
echo $SECRET_KEY
something
Wondering if I'm misunderstanding or it's a bug.
viktorbenei commented
You used the set -x
Bash flag most likely in your Script, which prints the command in its final / expanded form. set -v
prints it in unexpanded form.
viktorbenei commented
If you don't use any of these the the echo line should not be in your log, Bash does not print the command (only the command's output) unless you set one of these flags.
ninjaprox commented
You're correct. Thanks!