Project env vars should not overwrite circle.yml env vars


If there are two environment variables with the same name, one defined in circle.yml machine.environment section, the other defined in the Project settings environment variables page from the web ui, the circle.yml variable should take precedence.

This allows per-branch, or even per-build environment variables.

The current behavior violates Principle of Least Astonishment.

Cheers :beers:


As anecdotal as the original question; I prefer the current behavior because it lets me quickly retry builds with different config without having to go through git, create and push new commits, &c.