# Custom Env. Vars did not override App Env Vars or Workflow env vars

**URL:** https://discuss.bitrise.io/t/custom-env-vars-did-not-override-app-env-vars-or-workflow-env-vars/1094
**Category:** Question & Answer
**Created:** [March 10, 2017, 8:51am UTC](https://discuss.bitrise.io/t/custom-env-vars-did-not-override-app-env-vars-or-workflow-env-vars/1094 "2017-03-10T08:51:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dvdchr-tvlk](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dvdchr-tvlk](https://discuss.bitrise.io/u/dvdchr-tvlk)
#### Post date: [March 10, 2017, 8:51am UTC](https://discuss.bitrise.io/t/custom-env-vars-did-not-override-app-env-vars-or-workflow-env-vars/1094/1 "2017-03-10T08:51:08Z")

</div>

Hi Bitrise Team,

I noticed that custom environment var defined in the Start build \> Advanced section did not override the ones that was defined in the App Env Vars.

For example, I have a default App Env Var for $FOO containing value “bar”.  
When I start a build using Advanced section, I added custom environment variable for"FOO", with the value “baz”.

The result is when reading FOO, the predefined value (i.e. “bar”) is always read.

Is this intended?

---

<div class="post-metadata">

### Author: ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)
#### Post date: [March 10, 2017, 8:52am UTC](https://discuss.bitrise.io/t/custom-env-vars-did-not-override-app-env-vars-or-workflow-env-vars/1094/2 "2017-03-10T08:52:23Z")

</div>

Please see

> [@How to override environment variables through the Build Trigger API](http://discuss.bitrise.io/t/how-to-override-environment-variables-through-the-build-trigger-api/191):
>
> Environment Variables are set (processed) in a specific order. An environment variable processed before another one can’t override the second one, but the second one can use the first one. If you use the [Build Trigger API](http://devcenter.bitrise.io/api/build-trigger) and you specify one-off environment variables as parameters of the build, those will be processed after the Secret Env Vars, but before App Env Vars. This means that simply specifying the same environment variable this way which is also defined in the build configuration (bit…

and feel free to ask any questions there!

---

<div class="post-metadata">

### Author: ![dvdchr-tvlk](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dvdchr-tvlk](https://discuss.bitrise.io/u/dvdchr-tvlk)
#### Post date: [March 10, 2017, 10:00am UTC](https://discuss.bitrise.io/t/custom-env-vars-did-not-override-app-env-vars-or-workflow-env-vars/1094/3 "2017-03-10T10:00:00Z")

</div>

Ah, I missed that one.

Thanks, Victor!

Best,  
David

---

<div class="post-metadata">

### Author: ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)
#### Post date: [March 11, 2017, 10:00am UTC](https://discuss.bitrise.io/t/custom-env-vars-did-not-override-app-env-vars-or-workflow-env-vars/1094/4 "2017-03-11T10:00:28Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
