Continuous Integration server options provided by Stash

Hello ,

Can we integrate stash with Continuous Integration server other than Bamboo?

Regards,

Mohan

1 answer

1 accepted

Hi Mohan,

You can indeed! You'll just need to configure your build server to post build results to the Stash Build Status REST API. See the documentation on Updating build status for commits for details.

Depending on your CI server, someone may have already built integration for you. For example:

cheers,

Tim

But i wanted it the other way .. A push to stash server should be queued for build in a continious integration server not the build server posting build results to the Stash Build Status REST API.

Hi again Mohan,

Absolutely! You could either:

  1. set your build server to poll your Stash repository for changes (just like any other git repository); or
  2. (more efficient) you could install a repository hook that notifies your build server when changes are pushed to your Stash repository. This repository hook example demonstrates just that.

Again, I'd do a quick google to see if someone's already built a Stash hook that integrates with your particular build server before going off and writing your own.

cheers,

Tim

Thanks Tim !

So can i push commit/branch from my git client (local repository ) to refs/for/<branchname> ( like gerrit ) in stash server and use the repository hook to notify build server of the available changes in refs/for/<branchname>

Yep! That's the general idea. Have a look at the repository hook example I linked to above for the nitty-gritty of actually building a hook to do that.

Hi again Mohan,

If you're satisfied with this answer, would you mind marking it as correct?

cheers,

Tim

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,216 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you