Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How can i deploy an artifact manually to whichever environment I choose.

I am currently migrating from Bamboo server to Bitbucket Cloud with pipelines. It appears that I need to write the deployment process into my pipeline. What I am hoping to do is replicate the current setup I have now in Bamboo server.


When I commit my code, the build runs and produces an artifact. (A zip file containing my php website)

I can then deploy that artifact to my test, staging, and production environments using the deploy feature on Bamboo. I can deploy at whatever time I choose after the artifact is done. Can anyone explain how I can achieve this in bitbucket pipelines?

1 answer

0 votes
Caroline R Atlassian Team Jul 12, 2021

Hi, @Website Admin!

First, I would like to share with you that Bitbucket Pipelines uses YAML, if you're not familiar with it you can check this doc:

It has info on keywords used in the yml file, the structure and examples of yml files. 

Answering your question about deploying an artifact manually to whichever environment you choose, you can first include in your yml file one step that does the build and generates the artifact. You'll need to define in the yml file as per this doc.:

Then, you can configure 3 deployment environments in your repo:

And add 3 respective deployments steps in the yml file, with trigger: manual (the example in the above doc. also has some deployment steps with trigger: manual) so you can run them manually later.

A note for manual steps from our doc:

Manual steps:
It can only be executed in the order that they are configured. You cannot skip a manual step.
It can only be executed if the previous step has successfully completed.

Now, if you would like some info on how to deploy from Pipelines:

If you're deploying to your own server, you can take a look at some of the pipes we have here: 

E.g. you could set up SSH and use either of these pipes:

If you want to use FTP you could use this pipe:

I hope this helps, but do let me know if you have any questions. 

Kind regards,

Thank you for the detailed comment. I will get back to you once implemented 

Like Caroline R likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,084 views 2 9
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