From 1d8f939c960f13067c43ef38905932a9b5148952 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Tue, 23 Oct 2018 15:03:55 +0300 Subject: [PATCH] ci: add more info on how CircleCI env vars are defined (#26596) PR Close #26596 --- .circleci/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3bd4c969ef..6ccba6305b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,6 +20,14 @@ var_3: &define_env_vars run: name: Define environment variables command: | + # In CircleCI, each step runs in a new shell. The way to share ENV variables across steps is to export them from + # `$BASH_ENV`, which is automatically sourced at the beginning of every step (for the default `bash` shell). + # + # See also https://circleci.com/docs/2.0/env-vars/#using-bash_env-to-set-environment-variables. + # + # NOTE: + # Using `tee -a` prints the values to stdout, which can help with debugging. + # Secrets (e.g. passwords, access token) should NOT be printed. echo "export PROJECT_ROOT=$(pwd)" | tee -a $BASH_ENV echo "export CI_AIO_MIN_PWA_SCORE=95" | tee -a $BASH_ENV # This is the branch being built; e.g. `pull/12345` for PR builds.