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 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,
Caroline

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
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Posted in Bitbucket

Share your use cases: How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features to how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your tea...

43 views 0 1
Join discussion

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