Hi everyone,
In Pipeline, I have a step which runs integration tests. The config use to be in a file but I am migrating to environment variable, here is my step:
- step:
name: Integration Tests on Dev
caches:
- pip
script:
- bash Scripts/set_env_vars_locally.sh -e dev && cd IntegrationTests && python -m unittest discover
The set_env_vars_locally.sh script ends by a printenv and I can see the right values. However, when the python command runs, it sees the default value, not the one it has been updated with.
I tried doing that locally on ubuntu running a command like "export MY_VAR=NEW_VALUE && python3 show_vars.py" and it properly outputs NEW_VALUE.
I would be glad to have any help on understanding why the env var update does not seem to work.