Hi,
I’ve got process setup to deploy to multiple environments. If the first succeeds, the second will be started automatically.
In this process I’ve got a an email step at the end, which I have set up to send an email to the initiator of the deploy with the variable: Octopus.Deployment.CreatedBy.EmailAddress
This works fine for the first step, but in the second step (which is started automatically on success of the first) this variable seems to be empty. I can see why that is, but it would make more sense to me if the createdby was the same as the createdby for the first deploy, as it is this first deploy that intitiates the second one.
Just to be clear, this is the error I’m getting:
The parameter ‘addresses’ cannot be an empty string.
Parameter name: addresses
System.ArgumentException: The parameter ‘addresses’ cannot be an empty string.
Parameter name: addresses
at System.Net.Mail.MailAddressCollection.Add(String addresses)
at Octopus.Server.Orchestration.Deploy.Email.EmailActionOrchestrator.CreateMessage(SmtpConfiguration smtp, DeploymentAction action, IDeploymentManifest manifest) in y:\work\refs\heads\master\source\Octopus.Server\Orchestration\Deploy\Email\EmailActionOrchestrator.cs:line 92
at Octopus.Server.Orchestration.Deploy.Email.EmailActionOrchestrator.d__0.MoveNext() in y:\work\refs\heads\master\source\Octopus.Server\Orchestration\Deploy\Email\EmailActionOrchestrator.cs:line 48
Octopus.Server version 2.6.3.886