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?
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.
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...
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