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

Bamboo Notification MS Teams

Kristian Samuel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 15, 2018

Hi,

I'm looking for a plugin or a method so that I get notified when a build passed or fails however rather than just giving out the Fail/Pass message I would need the reason why it passed or failed instead so I'm lkking for something which display more info rather than:

 

Build # Failed

Bamboo Utility Belt › Push start Notification (Test) › #19 failed. Manual run by....

Build status update

Notified by Bamboo

Details

Responsible Users 
From

Bambo Notification test

 

 

Any ideas?

Thanks in advance.

1 answer

0 votes
Danyal Iqbal
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 Leaders.
August 15, 2018

Copy notificationCommonsHtml.ftl to BAMBOO_HOME\templates\notification-templates

Look for this line:

[#macro showFailingJobs buildSummary baseUrl]

This is where it displays info about the failed jobs.  I updated this section:

[#if jobResult.failed]
[@displayJobRow jobResult stageResult/]
[#assign failingJob = true /]
[#-- Added to show failed job error summary --]
<tr>
<td colspan="5"><strong>Error Summary:</strong><br/>
[#list jobResult.extraBuildResultsData.buildErrors as error]
${error}<br/>
[/#list]
</tr>
[/#if]

That adds the build summary error message after each failed job.

The API has changed a bit since the original response. The error data is now in ExtraBuildResultsData. Remember to restart Bamboo after you've edited the file.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events