You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi there, I'm just starting to get my head around BitBucket and I love it's potential. We have a repro that is worked on by several colleagues, and when each is happy with their branch they merge into a staging branch. When happy with that we then merge into Production branch. Pretty standard stuff. When using SASS the staging & producion commits go into CircleCI which then pushes to server.
For a small dev project that doesn't need to be compiled, like a basic WordPress site, I would like BitBucket to simple automatcially push the staging branch once someone has commited to it. I can see this is done as a pipline and I have the SSH keys setup and communicating with the SiteGround hosting, but cannot work out how to get the pipeline to do this. Any assistance appreciated.
Thanks
J
Hey.
I believe you can create a git repo on the siteground. When you have that repo and you have SSH setup, you can clone bitbucket repository and then have a simple pipeline.
pipelines:
branches:
staging:
- step:
script:
- git remote add siteground ssh://user@siteground.biz:18765/home/user/repo.git ## or something similar
- git push master siteground
Thanks @Matija Varjacic I'm so close now, I can taste it !! Just got to work out a couple of errors in the above but I can have a bit of trial and error. I have it saved correctly now, I changed master to staging in your code, but it cannot find that. What have I done !?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah it looks like bitbucket will only try to connect through port 22 even though I have the port in the URL. Need to speak with siteground about opening that port I think. Very strange.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I thought I had asked quite a simple question, am I way off the mark on what I am expecting BitBucket to do? Apologies for the noob approach!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.