Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins Slack integration

Tags:

I want to use the Slack plugin in Jenkins to ping notifications to a Slack channel.

Jenkins says success when I test the connection, but I don't receive any notifications in my Slack channel.

Are there any known problems?

How can I get Jenkins to send notifications to Slack?

like image 644
Felix Avatar asked May 16 '15 06:05

Felix


People also ask

How does Jenkins integrate with Slack?

On Jenkins: Find the Slack configuration in "Manage Jenkins → Configure System". On Jenkins: Click "Add" to create a new "Secret text" Credential with that token. On Jenkins: Select the new "Secret text" in the dropdown. On Jenkins: Make note of the "Default channel / member id".

Can we trigger Jenkins job from Slack?

Go to Jenkins job > Go to the post-build section > Select Slack Notifications. In the Slack Notifications section, choose the events you would like to be notified about. Now Build the Jenkins job. Based on the build result you will receive a Slack notification on the Slack channel as shown below.


1 Answers

I think that you should add post-build action "Slack Notification" in your Jenkins. Please see the image below

enter image description here

like image 102
Nguyen Sy Thanh Son Avatar answered Nov 07 '22 13:11

Nguyen Sy Thanh Son