Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Optional steps in bitbucket pipelines Edited


I was building the CI/CD system, and I realized there was something lacking for our use case. Let me explain:

We have different teams with different test environments (deployments), like uat1, aut2, uat3.

When it's time to push the changes to the environment, ideally a team could trigger a custom pipeline that would do 2 steps: 1) build the image and 2) deploy it to their own environment.

So the way it'd be best, is to have an input variable to define where to deploy in step2

Something like a conditional step would work here, anytime the input variable could be used for the conditional.

Does anyone have the same workflow?

1 comment

I'd love to know if you found a good solution to this?

No good solution, but duplicating pipelines... it requires a conditional execution of deployment based on some var in the scope to do this in a good way. Ideally this thread could turn into a feature request. 

Thanks for the reply. I was considering using some sort of user account variable which would modify the pipeline to deploy to a different environment. Not ideal but a possible solution that I'll try later in the week.

There exsists an issue for further discussion.

Like Alex Bailey likes this


Log in or Sign up to comment
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

2,113 views 43 15
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