Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

how to choose which environment to deploy to?

I've setup my bitbucket pipelines yaml to deploy my application to dev instance in AWS using code deploy. I have staging and prod environments also. How do I configure my pipeline for the same app so that I can chose which environment to deploy to after a commit?

1 answer

1 accepted

3 votes
Answer accepted

Hi @gbrown .

You need to configure  a section for all branch-specific build pipelines.

for instance, for prod, have a specific master branch pipeline section and for staging, you'd setup develop branch pipeline section. 

For more info, check this out. https://www.atlassian.com/continuous-delivery/tutorials/continuous-delivery-tutorial

 https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html#Configurebitbucket-pipelines.yml-ci_branchesbranches(optional)

 

Thanks @ABEL MASILA   I found the solution after I posted the question but did not know how to remove my question. Thank you for the tutorial link. I am new to this and it is very helpful.

You're welcome. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,717 views 10 16
Read article

Community Events

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

Events near you