Answers: <p><a href="https://circleci.com/docs/2.0/env-vars/#setting-an-environment-variable-in-a-project" rel="nofollow noreferrer">https://circleci.com/docs/2.0/env-vars/#setting-an-environment-variable-in-a-project</a></p>
  
  <p>Seems "contexts" can be used but must then also be set to "reference" the context in the build yaml config file.</p>
  
  <p>Instead to set a environment variable for a project:
  Jobs > Cog / gear icon of a project > Build settings > Environment variable</p>
  
Answers: CC BY-SA 4.0
Answers: 2019-10-03T21:48:38.417Z
Answers: 2019-10-29T21:40:27.803Z
Answers: 2019-10-29T21:40:27.803Z
Answers: Chris Stryczynski
Body: <p>I've set the environment variable with a "context" (I have no idea if thats the right place - it's really confusing!)</p>
  
  <p>None the less, it's now doing a build - and I don't see the environment variables set (I'm using the SSH build to inspect the vars with <code>getenv</code>).</p>
  
  <p>Why is it not being picked up? Am I meant to set an environment variable by some other means rather than a "context"?</p>
  
Tags: <cicd><circleci>
Title: How to set a Circle CI environment variable for a project?
UserDisplayName: Chris Stryczynski
ThreadText: # How to set a Circle CI environment variable for a project?
  
  (Asked by: username_0 on 2019-10-03)
  
  I've set the environment variable with a "context" (I have no idea if thats the right place - it's really confusing!)
  
  None the less, it's now doing a build - and I don't see the environment variables set (I'm using the SSH build to inspect the vars with `getenv`).
  
  Why is it not being picked up? Am I meant to set an environment variable by some other means rather than a "context"?
  
  **Tags:** cicd, circleci
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-10-03. Score: 1 | Accepted answer
  
  <https://circleci.com/docs/2.0/env-vars/#setting-an-environment-variable-in-a-project>
  
  Seems "contexts" can be used but must then also be set to "reference" the context in the build yaml config file.
  
  Instead to set a environment variable for a project:
  Jobs > Cog / gear icon of a project > Build settings > Environment variable
  
  
  ---
  
  