Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,457,124
Community Members
 
Community Events
176
Community Groups

Automatic deployment on branch commit

Edited

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

2 answers

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

 

More
https://community.atlassian.com/t5/Bitbucket-questions/Is-Siteground-blocking-connection-to-bitbucket/qaq-p/779709 

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

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.

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!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events