A build's 'Infrastructure: Start Container' section is missing certain environment variables


#1

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

CI_PULL_REQUEST no longer when building a PR
#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.


#3

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?


#4