Customized Email Notification in GoCD 19.10

34 views
Skip to first unread message

Shivani Shinde

unread,
Apr 22, 2020, 8:24:12 AM4/22/20
to go-cd
Hi all,
I was able to setup email notification configuration in GoCD 19.10 successfully. However, there are 2 things I wonder about:
  1. In the email notification, this first line is this: 
    Now I have configured SSL certificates and I have a domain (my-domain.net) on which I access GoCD.
    How can I have that domain here in notification email and the URL will be https://my-domain.net:8154/go/../

    I also have NGINX configured, so I can access GoCD witthout port. How can I get those details in email. Is it possible?

  2. I want to attach logs from Console which are stored at
    /var/lib/go-server/data/console/2e627f29b6a7a42ad5bed8a2b5fb5b40.log
    I am guessing these logs are generated stage-wise. If that is correct,
    (i) I am wondering how will the console logs be stored if multiple pipelines are run at once.
    (ii) After each stage is done, where are these logs stored ?

    Anyway, if these are stored stage-wise AND since email is also sent stage wise by default, how can I attach this log file with the email notification?

    I went through a plugin by Srinivas Upadhaye, but I dont think it serves my purpose.
Anyone who would have came across similar situation? Any help will be appreciated?
Thank you.

Shivani Shinde

unread,
Apr 23, 2020, 5:18:55 AM4/23/20
to go-cd
Anyone from GoCD team, can anyone help me with the first part of problem?

From where are the emails triggered? 
Is it possible to replace the IP with my domain? 
Any file on Go-Server machine, where this can be configured?

Any help will be appreciated!

Thank you!

Aravind SV

unread,
Apr 23, 2020, 5:35:41 AM4/23/20
to go...@googlegroups.com
Hello,

On Wed, Apr 22, 2020 at 05:24:11 -0700, Shivani Shinde wrote:
> 1. In the email notification, this first line is this:
> See details: http://<mygo-server-ip>:8153/go/pipelines/ <http://192.168.1.74:8153/go/pipelines/2.4-Software-DEV/172/AP/1>../
>
> Now I have configured SSL certificates and I have a domain (my-domain.net) on
> which I access GoCD. How can I have that domain here in notification email
> and the URL will be *https://my-domain.net:8154/go/../ I also have NGINX
> configured, so I can access GoCD witthout port. How can I get those details
> in email. Is it possible? *

You might be able to change both the "Site URL" and "Secure Site URL" to the same https://... value in https://your-server/go/admin/config/server. I believe the email uses that. Not sure.

> Anyway, if these are stored stage-wise AND since email is also sent
> stage wise by default, how can I attach this log file with the email
> notification?
>
> I went through a plugin <https://github.com/gocd-contrib/email-notifier> by Srinivas Upadhaye, but I dont think it serves my purpose.

Unfortunately, there isn't a lot of configurability available with the built-in email notification. Something like the email-notifier plugin is the place to do that, and it has enough flexibility to be able to. Maybe the plugin needs a contribution / change.

Cheers,
Aravind

Shivani Shinde

unread,
Apr 24, 2020, 8:41:07 AM4/24/20
to go...@googlegroups.com, Aravind SV
@Aravind SV Thank you for responding.

Your suggestion of "Site URLs" worked! I now get my domain in email notification!

Thank you!

--
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/20200423093534.tq7ctwnmi2zydv74%40arvindsv.com.


--
Shivani Shinde
AlefEdge

CONFIDENTIALITY. This email and any attachments are confidential to Alef Edge Inc., and may also be privileged, except where the email states it can be disclosed. If this email is received in error, please do not disclose the contents to anyone, notify the sender by return email, and delete this email (and any attachments) from your system.

Reply all
Reply to author
Forward
0 new messages