Thibault
(Thibault)
1
Hello,
I was trying to setup an email notification when the deployment is finished with the following template:
The deployment included the following actions:
#{each action in Octopus.Action}
#{unless ation.IsSkipped}
-
#{action.Name} #{if action.Package.NuGetPackageId}— #{action.Package.NuGetPackageId} version #{action.Package.NuGetPackageVersion}#{/if}
#{/unless}
#{/each}
However, I often only activate a few actions (Deploy > Advanced > Skip) but the email still comes in with every actions.
Am I missing something?
Thanks in advance
Hi,
Thanks for getting in touch! It looks like there is a typo in your second line.
#{unless ation.IsSkipped}
Should be:
#{unless action.IsSkipped}
We put this into our VM and tested it with the fixed variable and it looked to work fine.
Let me know if this fixes the issue.
Regards,
Daniel
Thibault
(Thibault)
3
Works like a charm, stupid typo
Thank you!
Hi,
No worries at all! I’m glad its working for you now.
Please don’t hesitate to get in touch if you run into any further issues or have any questions.
Regards,
Daniel