Feature #28361
opengenerate a notification if build is marked as failure
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1738815
Description of problem:
RFE BZ#1490850 implemented a mechanism of marking the build as failed sooner than the token times-out by reporting the status back to foreman.
When the build is marked as failed this way, it does not generate a notification.
If the build passes, a proper notification is generated.
It would be useful to be notified when the build fails.
Version-Release number of selected component (if applicable):
sat6.6.0
How reproducible:
Steps to Reproduce:
1. modify the kickstart default template to return a non-zero return code in the <%post> section check to provoke foreman to mark build as passed
2. provision a host using the kickstart default template
3. make sure the host details show the build as Failed after the host is provisioned
4. observe there's no notification generated for this event
Actual results:
no notification
Expected results:
a proper notification is generated
Additional info: