Setting up Bitbucket Deployments Feature Edited


I am attempting to set up the alpha Bitbucket Deployments feature.

I have the following in my bitbucket-pipelines.yml in the master branch, following the documentation example:

- step:
name: Deploy to test
deployment: test
trigger: manual
- chmod +x && ./

However, when I go to the Deployments page on the project I still see the introductory text:

  1. Add deployment: test to the step in your bitbucket-pipelines.yml file that deploys 
    to your test environment.
  2. Run your pipeline.
  3. Once the deployment step is in progress, it will show up here.

I am confused on how to invoke this pipeline now as before it was set up as a custom pipeline that could be manually triggered by a specific commit.

How can I properly set up this feature and invoke the pipeline with the 

trigger: manual


Thanks for any assistance.


1 answer

Ok, I've figured it out. 

In my bitbucket-pipelines.yml I had all three environments set under the default step. Only one deployment is allowed here.

The instructions on the Deployments page are also a bit misleading since it is implied a "test" deployment is required when this is not the case.

All three environments are present in the instructions article for setting up the deployment -

Which further adds to the confusion.

Is there any way to set up a choice as to which environment the current commit can be deployed to, or will we have to keep separate bitbucket-pipelines.yml in each branch?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

678 views 5 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you