Include initiator name in Slack notifications

12 views
Skip to first unread message

Sergii

unread,
Dec 17, 2019, 1:11:49 AM12/17/19
to go-cd
Hi everyone,

We managed to deploy GoCD into our environment and everything works well - big respect to developers for amazing product!

We use Slack notifications a lot for information about pipeline stages, etc and now I am thinking how to include what or who triggered the pipeline into Slack message.

Fo example, we have deployment to live servers set as manual so whenever someone triggers it would be great to see "Deployment to live triggered by XXXX".

I wonder if we can get who triggered the pipeline as variable somewhere?

Thank you in advance 

Aravind SV

unread,
Dec 17, 2019, 3:42:18 AM12/17/19
to go...@googlegroups.com
Hello!

It looks like that information is available to the plugin: https://plugin-api.gocd.org/current/notifications/#stage-start-notifications (see the part which says "approved-by").

So, this is something that should be asked at the issue tracker of the plugin: https://github.com/ashwanthkumar/gocd-slack-build-notifier -- a PR will probably be appreciated if it is a change which will be accepted there.

I see some code which already uses that property here: https://github.com/ashwanthkumar/gocd-slack-build-notifier/blob/1de8ef6d0a8680a4248ec77e857492d9678c2672/src/main/java/in/ashwanthkumar/gocd/slack/SlackPipelineListener.java#L93

Cheers,
Aravind
Reply all
Reply to author
Forward
0 new messages