email notification in code

47 views
Skip to first unread message

celeste palet

unread,
Mar 25, 2023, 8:46:06 PM3/25/23
to go-cd
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?

Chad Wilson

unread,
Apr 10, 2023, 1:38:57 AM4/10/23
to go...@googlegroups.com
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, or desktop/build radiator tools that talk "cctray" format and can monitor GoCD's CCtray XML feed for stage completions then decide what to do (e.g CCMenu).

-Chad

On Sun, Mar 26, 2023 at 8:46 AM celeste palet <actio...@gmail.com> 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 go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/ac71ed3d-3746-400c-a7d9-0a6ce4c74f09n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages