The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to use GitHub and Bamboo in a continuous integration manner?

Philip Colmer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 9, 2018

We're using Bamboo to build a number of our web sites using Jekyll. The content for the sites is stored in git repositories stored on GitHub so that the community can contribute to the documentation.

At the moment, the process is that when a pull request is approved, the commit is merged into the GitHub repository, which then triggers a build in Bamboo.

If that build fails (for example if the user submitted something that included a broken link), no progress can be made until someone goes and fixes the problem. It completely halts progress.

What I'd like to have is something similar to what I've seen elsewhere with code submissions where the pull request itself triggers a code validation process (in this scenario, an attempt to build the site) and then report back to GitHub the status of the build process so that the repo maintainer knows whether or not the proceed with the merge.

We're already using the GitHub Status add-on for Bamboo and it is reporting back to GitHub the status of the current build process for a given commit but that is only part of the picture.

I don't know how to do the "trigger a build in Bamboo when someone submits a pull request but before the merge is approved" bit ... is it even possible with GitHub and Bamboo?

I could use Travis instead but that seems to be duplicating the stack then ...

Thanks.

Philip

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Philip Colmer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 9, 2018

I've found this article which looks like it will help a lot:

https://medium.com/@danpurdy0/automated-testing-and-status-reporting-to-github-enterprise-slack-from-atlassian-bamboo-c02328d7211c

I need to do some testing to see how much of our existing workflow needs to change.

Philip Colmer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 16, 2018

This doesn't seem to be a complete answer, after all.

Unfortunately, this approach only seems to work when the new branches are created on the repository that is used when building in Bamboo.

However, if the pull request comes from a fork of the repository, the new branch is on that fork and not on the repository referenced by Bamboo ... which means that GitHub never triggers a Bamboo build!

Any thoughts or suggestions on that?

TAGS
AUG Leaders

Atlassian Community Events