Suggest adding a Octopus.Deployment.Duration system variable

I have success and fail email msg processes at the end of my deployments. I’d like to add the duration of the deployment to the email.

Hi,

Thanks for getting in touch! Your best bet would be to create a variable at the start of the deployment using Powershell such as:
set-octopusvariable -name "SomeStart" -value [System.DateTime]::UtcNow then printing this out in your email template along with the current time.
We do have a variable Octopus.Deployment.Created but this is the queued time, which if you run a scheduled deployment is not when the deployment actually starts.

Hope this helps!
Vanessa