My project structure which I can't change now is as follows:
Dev repository
Production repository
And the deployment flow is as follows:
The question:
I want to change the deployment to a Bitbucket Deployments in a pipeline. I know I can make a pipeline step per branch, but can I do the same per repository? If no, how to archive Bitbucket Deployments the most reliable way.
Hey @Artur Stępień,
Bitbucket Pipelines enables you to configure different pipelines for specific branches. See for some examples here: https://confluence.atlassian.com/bitbucket/branch-workflows-856697482.html
You can easily extend this workflow to integrate with Bitbucket Deployments as well, by adding 'deployment: production' to your deployment step. See this page for more info: https://confluence.atlassian.com/bitbucket/bitbucket-deployments-940695276.html
Thanks for the reference but The problem is that my master for production is on a separate repository. I need to use deployment:production only on production repository and stagging/testing deployment on a development repository (both production and development repositories have a master branch). So is there a way to write steps PER repository too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Right, I see. Unfortunately Bitbucket Pipelines only supports workflows per repository at the moment.
There is a feature request open for this, you can check it here: https://bitbucket.org/site/master/issues/13232/trigger-downstream-builds
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.