Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Send email if a build fails



  • Is there a way we can get Buildmaster to send an email to a list of addresses (including from a variable) if a build fails ?.

    Product: BuildMaster
    Version: 4.0.9



  • The easiest way to do this with notifiers (specifically the Execution Completed). You can create a notifier and enter whatever multiple addresses; however, it would not work with variable addresses.

    For something like that, you'd have to use the Send Email Action at the end of your deployment plan and marking each action as "Resume Next on Failure". You can also add a predicate to each subsequent action group that says basically to execute only if "Execution Status" != Failed, and on the group containing the email action "Execution Status" == Failed so that the plan wouldn't run any extra steps.



  • This sounds like a good idea but it does not seem to work. I have marked each task as "resume on failure" and added predicate tests using "Execution Status" = Succeeded, except for the last one which uses "Execution Status" == Failed.

    After the initial failure, each action is skipped - even the last one.

    There are no log files shown for the failed action (it appears to have been skipped even though I can see it being run in live execution) and the entire execution is marked as Succeeded even though the predicate tests indicate it failed.



  • We have upgraded to Buildmaster 4.0.9 (B31) and the "Execution Status" == succeeded work better but still not correctly.

    The predicate test is on the Action Group which contains 2 separate actions. The first action fails (and shows as failed in the log) then the next action succeeds and this marks the Execution Status as succeeded again to the remaining predicate tests pass.

    It would seem that the Execution Status should not be set the succeeded after it has been set to Failed.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation