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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.