CIRCLE_BRANCH is sometimes missing

Sometimes the environment variable CIRCLE_BRANCH is not declared. I can rebuild the same commit and it appears.

1 Like

Still getting this issue

Still occuring. See the environment variables in https://circleci.com/gh/First-Rung/web-app/1936 and https://circleci.com/gh/First-Rung/web-app/1938 for an example.