# Organization-wide environment variables

**URL:** <https://forum.buildkite.community/t/organization-wide-environment-variables/1174>\
**Category:** Features Requests\
**Created:** [August 8, 2020, 7:10pm UTC](https://forum.buildkite.community/t/organization-wide-environment-variables/1174 "2020-08-08T19:10:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gencer](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/gencer/32/647_2.png) [@gencer](https://forum.buildkite.community/u/gencer)\
**Post date:** [August 8, 2020, 7:10pm UTC](https://forum.buildkite.community/t/organization-wide-environment-variables/1174/1 "2020-08-08T19:10:49Z")

</div>

Hi,

When I need a specific environment variable for all of my pipelines, I have to either a) update every yaml file in every repo, or b) update every pipeline’s own environment. This is unconvincing. Since, environment variable is static and valid for all pipelines.

Is it possible to define organization-wide environment variables that can be used with all pipelines? Just like GitHub Actions does?

Thanks!,  
Gencer.

---

<div class="post-metadata">

**Author:** ![xiaket](https://avatars.discourse-cdn.com/v4/letter/x/7feea3/32.png) [@xiaket](https://forum.buildkite.community/u/xiaket)\
**Post date:** [August 8, 2020, 11:48pm UTC](https://forum.buildkite.community/t/organization-wide-environment-variables/1174/2 "2020-08-08T23:48:00Z")

</div>

You can do it in bootstrap.sh script.

---

<div class="post-metadata">

**Author:** ![gencer](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/gencer/32/647_2.png) [@gencer](https://forum.buildkite.community/u/gencer)\
**Post date:** [August 9, 2020, 12:15am UTC](https://forum.buildkite.community/t/organization-wide-environment-variables/1174/3 "2020-08-09T00:15:21Z")

</div>

@xiaket You mean on EC2? Elastic AWS Plugin?

---

<div class="post-metadata">

**Author:** ![anon8263991](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@anon8263991](https://forum.buildkite.community/u/anon8263991)\
**Post date:** [August 9, 2020, 1:15pm UTC](https://forum.buildkite.community/t/organization-wide-environment-variables/1174/4 "2020-08-09T13:15:51Z")

</div>

This is an interesting idea, but unfortunately it’s not something Buildkite supports at this stage.

This [feature request](https://forum.buildkite.community/t/company-wide-environment-variables/1033), it may be worth combining your votes on there to help raise it’s profile.

For now, @xiaket has suggested a good option that we support. The agents can have environment variables set in the environment hook([https://buildkite.com/docs/agent/v3/hooks](https://buildkite.com/docs/agent/v3/hooks)), and depending on the variety of agents you’re running it may be feasible to set environment variables in a small number of hook scripts to add them into all builds.
