By putting the following in my circle.yml:
test:
override:
- set > "$CIRCLE_ARTIFACTS/env_vars_test.txt"
I see the following variables which are NOT mentioned in the builds ‘Test Summary: Infrastructure: Start Container’ section:
CI_PULL_REQUEST=https://github.com/xxx/yyyy/pull/45
CI_PULL_REQUESTS=https://github.com/xxx/yyyy/pull/45
CI_REPORTS=/tmp/circle-junit.Fa5di6v
CI=true
CIRCLECI=true
tom
June 7, 2016, 4:31pm
2
The listed environment variables are described in our docs here: https://circleci.com/docs/environment-variables/
Some, such as CI_PULL_REQUEST are only populated under certain circumstances, so are not shown at that stage of the build / are populated later in the build when we’ve checked out the source. Hope that helps.
I understand why CI_PULL_REQUEST
is not set until you’ve accessed the repo. But what about CI
and CIRCLECI
and CI_REPORTS
?
Could you please document which stage they are populated at?