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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

2,026 views 1 5
Read article

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