Get hands-on training for JIRA Software, Confluence, and more at Atlassian Summit Europe. Register now ›

On the JIRA team we have an old tradition to let the Confluence team tackle new things and steal their ideas if they end up working out.
We’ve recently had a couple of problems when developers would keep committing code if the builds are broken on Bamboo. We generally aim to stop all commits until the builds are passing again, since it makes it easier to find the problem as well as making developers think twice before committing ;). The good old IM notifications were just not quite strong enough; we needed something more visual:
cimg0001.jpg


We’ve setup an old box to be our Bamboo monitor in the JIRA area. As soon as a build fails, it’s displayed bright red on this screen. We’re currently only displaying the 4 main JIRA builds (Head unit & func tests, Branch unit & func tests), as we don’t quite have enough screen real estate.
Bamboo provides a list of builds (with auto-refresh) via the telemetry.action (e.g.: See http://opensource.bamboo.atlassian.com/telemetry.action).
We then stole Confluence’s Greasemonkey script to only display the builds we are interested in:

// ==UserScript==
// @name           Show selected Bamboo builds
// @namespace      bamboo
// @include        https://url.to.server/bamboo/telemetry.action
// ==/UserScript==
var links = document.getElementsByTagName("a");
for (var i=0; i<links.length; i++)
{
var link = links[i];
if (link.id != "viewBuild:JIRAFUNC-JDK16" &&
link.id != "viewBuild:BASIC-JDK16" &&
link.id != "viewBuild:JIRAFUNCBRA-JDK16" &&
link.id != "viewBuild:JBRANCH-JDK16")
{
link.parentNode.style.display = "none";
}
}

Here’s another picture showing a little better where the box has been setup:
cimg0002.jpg

Fresh ideas, announcements, and inspiration for your team, delivered weekly.

Subscribe now

Fresh ideas, announcements, and inspiration for your team, delivered weekly.

Subscribe now