Hi, I have a project environment variable named CODECOV_TOKEN
and I am trying to use it as part of the following command:
- run:
command: codecov -f "**/coverage.opencover.xml" -t ${CODECOV_TOKEN}
This results in an error:
ERROR(S):
Option 't, token' has no value.
Which indicates the environment variable is not being replaced. I am trying the same command with $CODECOV_TOKEN
which produces the same result.
The following command:
- run:
name: "test env var"
command: |
echo ${CODECOV_TOKEN}
Produces this output (also tried with $CODECOV_TOKEN
):
#!powershell.exe -ExecutionPolicy Bypass
echo ${CODECOV_TOKEN}
CircleCI received exit code 0
This also suggests the environment variable is not being replaced.
Could you please help me to find the reason and fix the replacement?
Thanks!