-
Hi, I'm trying to run some commands in a task that should set some environment variables and then use those in another task. e.g tasks:
task_a:
cmds:
- sh: export TESTING=something
task_b:
cmds:
- sh: `command that assumes $TESTING is set` But it doesn't seem to set it. I'm assuming tasks runs in a different subshells? any workaround? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Environment handling is a bit of a weak point of task. However there are various ways how to achieve what you're after.
task_b:
cmds:
- |
test ! -z "$AWS_ACCESS_KEY_ID" && login.sh
real_command
There is some background reading on this topic in various issues, like |
Beta Was this translation helpful? Give feedback.
Environment handling is a bit of a weak point of task. However there are various ways how to achieve what you're after.
There is some background reading on this topic in various issues, like