All of our bitbucket pipelines for all our repos use the same environments and same secrets. I suspect this is common for many other users too.
I don't want users to have to add these same environment variables to every repo they create because they could all be the same and be defined at the workspace level once.
How do you do this? When I look at the PIPELINES setting at the workspace level I see only:
* Workspace runners
* Workspace variables
Where is "Workspace environments" ?
Hi @Ben Orgil,
Thanks for reaching out to the community.
Unfortunately, we do not have a setting where you can add deployment environment variables at the workspace level.
However, I do believe it is a useful feature to be able to set/add that at the workspace level.
For this, I went ahead and created a feature request for it that can be located through this link. - https://jira.atlassian.com/browse/BCLOUD-22012
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud. Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy here.
As a workaround, instead of using deployment environment variables, you can add your variables to the Workspace level environment variables instead.
For now, you'll have to manage the variable naming based on your environments (e.g. for Staging/test, production).
Do let me know if you have further questions.
Regards,
Mark C
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.