Notification is not sent when dependent plan fails.
Asked by Nimitt Desai:

I am using dependency to trigger build plans.

e.g. Plan A, if successful will trigger plan B which if successful will trigger plan C.

Consider following situation.

Developer X, commits and that triggers Plan A to build successfully.  
Plan A then tiggers to build Plan B which also builds successfully.  
Plan B then triggers Plan C which fails.

In this case I would expect Bamboo to send "Build failed" email to Developer X. This does not happen.

Notification is set to "Send email to Responsible User" if build fails.

It seems Bamboo can't figure out who the responsible developer was if a dependent plan fails.

Please help me fix this issue.


Answers:
author: ArmenA
body: Hi Nimitt,

Thanks for your question. I was able to reproduce the behavior that you described, and I raised a [new feature request](https://jira.atlassian.com/browse/BAM-12327) based on this case. It will be implemented as per [our policy](https://confluence.atlassian.com/display/DEV/Implementation+of+New+Features+Policy). Feel free to add yourself as a watcher, vote or comment to that new feature request. As a workaround you can configure the same notifications for all your dependent plans.

Please let me know if you have any further questions or concerns.

Cheers,  
Armen

comments: author: Nimitt Desai
body: Thank you so much, I really appreciate this.

I don't quite understand the workaround. All of my plans have notifications set to be sent to "Responsible Users". Even with that there is no notification sent.


author: Sathish Selvaraj
body: With the above scenario - If plan c fails - how can I show or change the parent build plan A and plan b status as failed?


author: ArmenA
body: Hey Nimitt,

I verified that the way that the plan dependency is implemented in Bamboo is that the parent plan triggers the child plan and there is no information being passed from one to the other. This means that the child plan has no information about the parent plan performance: "like who triggered the build, how long did parent plan take".

Currently there is no way to configure Bamboo to send notifications form a child plan to the parent plan's responsible user account. If you need to add more information to the feature request that I have raised, please feel free to leave more comments with your suggestions.

Cheers,  
Armen


author: ArmenA
body: In addition to my previous comment, you might want to consider sending notifications to [Committers](https://confluence.atlassian.com/display/BAMBOO/Configuring+notifications+for+a+plan+and+its+jobs) instead of Responsible users.

Cheers,  
Armen

comments: author: Nimitt Desai
body: Hi Armen,

Thank you so much for your response.

This does not work either. Bamboo can't figure out who the committer was that triggered parent plan build unless committer also happened to commit to child plan.

When it comes to dependent plan build, Bamboo sems to have no idea about things like who triggered the build, how long did parent plan take. It would alos make sense to be able to send just one notification when entire stack has been built successfully and how long it took instead of sending notifications on every step in the chain.