It's not possible to configure notifications for a pipeline via "pipelines as code" - in GoCD's design this configuration is considered outside the pipeline configuration as the functionality comes from third party plugins such as https://github.com/gocd-contrib/email-notifier which have their own configuration approaches and trade-offs. Plugin configuration can be programmatically set via the API however: https://api.gocd.org/current/#update-plugin-settings
The core GoCD server only has functionality to send email on certain administrator conditions (backup failures, running out of space etc). Rather than email most folks probably use messaging integration style notifications, <https://www.gocd.org/plugins/#notification> or desktop/build radiator tools that talk "cctray" format <https://cctray.org/servers/> and can monitor GoCD's CCtray XML feed for stage completions then decide what to do (e.g CCMenu <https://ccmenu.org/>). -Chad On Sun, Mar 26, 2023 at 8:46 AM celeste palet <[email protected]> wrote: > Hi, I am using a gocd.yaml file to set my gocd pipeline. I need to send > emails notifications, I need to configure that by code in my gocd.yaml > file, not manually, but I did not find how do that. Any one knows how? Or > knows where I can find documentation about that? > > -- > You received this message because you are subscribed to the Google Groups > "go-cd" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/go-cd/ac71ed3d-3746-400c-a7d9-0a6ce4c74f09n%40googlegroups.com > <https://groups.google.com/d/msgid/go-cd/ac71ed3d-3746-400c-a7d9-0a6ce4c74f09n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAA1RwH81_-70Vt6vFokz8iNtyzNsPSR2yh-CXwYgz0LZ9o0k%3DA%40mail.gmail.com.
