Skip to main content

Greetings,


I’d like to use the Subscription option to send notifications to a Slack channel. Most of the fields make sense but I am stuck on Content Type and Payload.

I searched in Documents but didn’t find anything that covered Subscriptions. Did I miss it?

 

-David

 

Hi @dkovar!

The actual payload might depend on the trigger event type, but here’s an example of my Subscription where I am sending a Slack notification when a pipeline gets committed via “Check-In” option in the pipeline canvas.

{
"Alert_Name": "New Pipeline Version Committed",
"Pipeline_ID": "{{PIPELINE_ID}}",
"Pipeline_Version": "{{PIPELINE_VERSION}}",
"Pipeline_Name": "{{PIPELINE_NAME}}",
"Pipeline_Committer": "{{PIPELINE_COMMITTER}}",
"Pipeline_Commit_ID":"{{PIPELINE_COMMIT_ID}}",
"Pipeline_Commit_TS": "{{PIPELINE_COMMIT_TIME}}"
}

Here’s a screenshot of the Subscription config.

 


Thank you very much.

-David

 


You’re welcome!


Reply