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 to auto merge or auto deploy in Stash like in Bitbucket?

In Bitbucket we were able to auto deploy and in Stash we're not able to figure it out and would like some help. We have already search on and this didn't work 

4 answers

0 votes
Adam Ahmed Atlassian Team Apr 21, 2015

Can you explain what you mean by "auto deploy"? Stash only hosts your code. At best, you could use a webhook to tell a separate web application to deploy when some event occurs in your codebase. Automerge is also meant to "flow downhill" from older releases toward the newest release and then your development branch. It would be good to understand how you have your branches set up that you would need to merge all changes from master into a different branch. What does "master" mean to you, vs "develop"?

0 votes
Adam Ahmed Atlassian Team Apr 21, 2015

I suppose what would actually help is clarity around "master" vs "develop" versus whatever branch you use for "currently deployed", "upcoming deployment" and for "previous deployments" if any.

@Adam Ahmed by auto-deploy we basically mean that our staging website is being updated every time we run "git push". We are currently only using a master branch. Each developer works on his own clone of the same repository and our staging website codebase is a clone as well. Is there a way to add a hook to that particular clone that would trigger "pull" or "checkout" action, or do we need to create a webhook? Is this a good place to start if we are about to use webhooks?

0 votes
Adam Ahmed Atlassian Team Apr 22, 2015

Yeah that looks like a great place to start! Webhooks are definitely the way to go. The only built-in way Stash communicates with clients is through the standard Git client, so there's no other kind of "hook" available for you to listen to.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Atlassian supported Jenkins integration for Bitbucket Server

We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that our alpha is ready to download and install. It lets you seamlessly configure a Jenkins job ...

986 views 1 17
Read article

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