Email for Tenanted deployments

Hi,

When we perform deployments using Tenants, we are getting one email for each Tenants. Is there a way to consolidate and one single email for all Tenants?

Thanks,
Bhavanari

Hi Bhavanari,

Thanks for getting in touch! Are you using an email step as part of your deployment process?

Octopus creates a new deployment for each Environment + Tenant combination, which is why you’re getting one email per-tenant.

What is the driving reason you’d like a single consolidated email?

Octopus Email Notification Subscriptions

A reasonable solution might be to use an Email Notification Subscription. The subscription can be configured to send one email per-event, or you can set the Email Frequency to have Octopus batch events into consolidated email.

A downside to this approach is the Email Frequency is independent to your tenanted deployments. This means Octopus may send an email halfway through your batch of tenanted deployments.

Octopus Webhook Subscriptions

An advanced alternative would be to use a webhook subscription and use an external application/system to send emails based on your own custom logic.

Hope that helps!
Mike

Mike,

Thank you for the reply. We are using Email step. We want to minimize email traffic and want to see complete deployment status in one email. I think with Subscriptions, we can only set the frequency, is it possible to send an email when an event occurs?

Regards,
Bhavanari

Hi Bhavanari,

Thanks for keeping in touch! Right now, there is nothing built-in to Octopus that will meet your requirements exactly. Depending how important this feature is to you, your best bet would be to write small program that handles an Octopus Webhook Subscription and makes the decision to send a consolidated email.

That program could make the decision based on the stream of events from Octopus, or it could use those events as a trigger to query the Octopus REST API to decide if an email should be sent.

The reason we don’t have something built-in is because so many different customers want different triggers for these kinds of logic. We’ve focused on built-in support for the most common scenario, and providing you the ability to build and specific logic using an external application.

Hope that helps!
Mike

Mike,

Thank you for the help and clarification.

regards,
Bhavanari