Continuous Integration server options provided by Stash

Hello ,

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



1 answer

1 accepted

0 votes
Answer 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:



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.



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?



Suggest an answer

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

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

220 views 0 12
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