begincasepush_data['build_status']when'success'Notify.build_success_email(build_id,recipient).deliver_nowwhen'failed'Notify.build_fail_email(build_id,recipient).deliver_nowend# These are input errors and won't be corrected even if Sidekiq retriesrescueNet::SMTPFatalError,Net::SMTPSyntaxError=>elogger.info("Failed to send e-mail for project '#{push_data['project_name']}' to #{recipient}: #{e}")endendendend