Missed Team ’24? Catch up on announcements here.

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

BitBucket repo automatic updates on production server

Ted Reiss May 8, 2018

I have a BitBucket repository in the cloud and SourceTree on my local machine.  What I want is that whenever changes from my SourceTree are pushed to  BitBucket repository, it should be available instantly on the production server

1 answer

0 votes
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 8, 2018

Two easy ways to do this:

1. Set up a webhook listener on the production server that will pull new code; set up a webhook on Bitbucket that will notify the listener. (Documentation: https://confluence.atlassian.com/bitbucket/manage-webhooks-735643732.html )

2. Deploy with Bitbucket Pipelines. As a bonus, this will also let you do whatever tests you want. (Documentation: https://bitbucket.org/product/features/pipelines )

There's a third way involving cron, but I don't recommend it. (Lots of overhead and lots of extra bandwidth usage for very little benefit.)

Ted Reiss May 8, 2018

Thank you for your reply. Is there any working example  I can check

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events