Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,806
Community Members
 
Community Events
168
Community Groups

Bamboo not linking a build's commit back to GitHub?

Edited

I've got a Bamboo plan configured to build from a GitHub repository. Bamboo polls GitHub and detects commits that trigger a build. Bamboo correctly lists the GitHub commit under the Commits tab. Correctly detects the JIRA ticket id in the commit message and links it to our JIRA. However, it does not link the commit id back to GitHub. In other plans using a Stash repository, Bamboo does link the commits back to Stash.

Is this a problem with the way the GitHub repo is defined in Bamboo? Bamboo gains access to the repo through a GitHub account and a SSH key. However, the particular GitHub account does not own the repository. The account does have access rights to the repository. The repository is a private repository with access restricted to our organization.

Updated on 26-Apr-2017

By examining the HTML Bamboo produces arround the GitHub commit, I see this:

 <span class="revision-id" title="Unable to create URL - please check your web repository configuration"> 7a0f2e22b0ba314d4f6675a8d6b58f7f218461b5 </span>


It would be very helpful if that title was visible on the page instead of being buried in the HTML.

 

 Updated 26-Apr-2017

Have tried several ways of defining the WEB Repository for the GitHub Linked Repository. Tried defining using Stash (Legacy) and Fisheye. Neither will generate the correct URL for linking back to GitHub. So basically Bamboo 5.14.5 does not provide a way to link a commit back to GitHub like it does for Stash or Fisheye.

1 answer

bamboo-github-status is no longer maintained.

build-status-for-github may (or may not) help (I haven't tried it yet, but google seemed to think it might be appropriate.  If somebody else wants to be the guinea pig, let us know :-)

Just tried this plugin on Bamboo 6.10.3, and it sort of works.

It generates https://github.com/someorganization/somerepo/commit/commitvalue

Which works if I am logged in to GitHub in that browser session. If I am not logged into GitHub, clicking the link gives a 404 error probably because of 2FA.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events