I’ve encountered a problem configuring a Send Email Task.
I’ve created a variable in Variable Set named EmailNotificationTo and then I set multiple values based on Target Roles only, but the step has failed with the error 'The step failed: Activity Send Deployment Status on the Octopus Server failed with error ‘The specified string is not in the form required for an e-mail address.’.
Setting Enviroment instead of Target Roles everything works.
Anyone can help me to figure out hoe to configure Target Role variable?
Thank you for reaching out to us with your variable query.
Variables scoped to a target role only have a value when running on a suitable step which is scoped to that target role. The “Send Email Task” step won’t be scoped to a target role which means that the variables you are using won’t have a value and cannot be used. You’ll need to use a variable which is in scope at that point (e.g. environment).
I hope this is helpful. Please let me know if you have any questions.
thank you, everything is clear now!
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.