I have 3 servers
1 - dev
2 - prod1
3 - prod2
Sometimes I need to deploy the changes to server 3 before server 2 and the opposite. Is there a possibility to change the order of steps?
I know I can do this by edition pipeline file but possibly there is an easy way.
I assume that you have 3 steps for deployment to each of the 3 servers?
I'm afraid that it is not possible to change the order of the steps in a way other than editing the bitbucket-pipelines.yml file.
One thing you could do is create a custom pipeline for deployment to server 2 and another custom pipeline for deployment to server 3. Custom pipelines don't run automatically, but you can trigger them manually for a specific commit, or run them on a schedule:
You can then run them in the order you like.
Okay, I was already thinking about blue/green here but I didn't want to guess.
Can't you make the deployment order always blue/green so instead of server 1 and 2 which could be 1:blue and 2:green or 1:green and 2:blue to just have the first step to deploy to blue and the second step to deploy to green?
Then the pipeline would reflect your intention better.
> Okay, I was already thinking about blue/green here but I didn't want to guess.
> Can't you make the deployment order always blue/green so instead of server 1 and > 2 which could be 1:blue and 2:green or 1:green and 2:blue to just have the first >step to deploy to blue and the second step to deploy to green?
I would like to have it independent steps. Here is the flow:
Server 1 and Server 2 (both production) Server 1 is running (master), Second is not (fallback/slave). The flow is : Upgrade server 2. Test. And connect it to balancer, it becomes master. Server1 disconnected, upgraded, becomes slave. Next time, Server 1 becomes master again. That's why I need deploy buttons for both. Or change the order of steps.
Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events