Repository navigation
|
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? |
Answered by
kerma
Jan 20, 2022
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 |
1 reply
Answer selected by
ezerw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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