Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 trigger bamboo from github?

I have seen setup instructions for repository triggered builds for git, but using shell hooks, could not find how to do it using github web hooks.

I configured the repository and i can see a web hook in my repository. I also configured the bamboo hook, the test passes (payload deployed) but the buid does not run.

Any advice on how can i make the commits trigger builds? Is there a log i could use to debug this?

4 answers

There is info about this here, it's very thorough:

https://confluence.atlassian.com/bamboo/repository-triggers-the-build-when-changes-are-committed-289276902.html

But, it does not mention GitHub hooks. Here's how to create a GitHub hook:

https://developer.github.com/v3/repos/hooks/#create-a-hook

Where the "url" property of the "config" object would be of the form http://(YOUR.BAMBOO.SERVER:PORT)/updateAndBuild.action?buildKey=(PLAN.KEY.TO.TRIGGER)

I tried Stefan Mohr's suggestion:

  On GitHub, go to your repo settings > Webhooks & services

  Add the Bamboo service template

But I couldn't find the Bamboo service. I'm sure it was there a while ago. Did they remove it?

Ashley Lewis's answer got me most of the way, but I had to fiddle a bit to get the correct settings for a GitHub repository and a Bamboo On Demand server.

 

On GitHub, go to your repo settings > Webhooks & services

Add the Bamboo service template

Base url: https://(yourcompany).atlassian.net/builds

Build key: Bamboo key for the plan. If you're unsure of the exact syntax, open Bamboo in your browser and go to your plan summary. The key is in the URL.

Username and password are credentials for a Bamboo user that has permission to execute builds.

For the current API this is the right and simplest answer. I just spent  the morning switching our Bitbucket repos to Github and this was smooth & easy.

There are then a number of things you need to switch over in Bamboo in the Repositories and Triggers sections. Adding generic Git repositories instead of Bitbucket Server/Cloud in Repositories and adding a new Remote Trigger in Triggers.

What I haven't figured out yet is whether I really need the IP address in Remote Triggers. Docs say yes, the entry field says "optional". Reckoned I'd play it safe.

I've been searching around for support for GitHub Webhooks as well and I find it shocking that this feature is missing. Or if it's not missing, certainly the documentation is. Can we get an official response from Atlassian on Bamboo and GitHub WebHooks?

Any news on this? This is not working for elastic bamboo, so we have to pull our github repo - which is very backwards as these are both web services.

I would assume that this would be very beneficial for atlassian, as they do not have to have a git deamon running if we could trigger builds via integration/webhook.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

986 views 4 7
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