Recipe 1.6 Integrate Slack with Jenkins CI

Problem

You wish to post notifications from Jenkins CI to a Slack channel.

Solution

  • Logon to your Slack team.
  • Click on the "Add an app or custom integration" link.
  • Search for the PivotalTracker integration. And click the "Install" or "Add Configuration" button.
  • In your Jenkins dashboard, click on Manage Jenkins from the left navigation.

  • Click on Manage Plugins and search for Slack in the Available tab. Click the checkbox and install the plugin.

  • After it's installed, click on Manage Jenkins again in the left navigation, and then go to Configure System. Find the Global Slack Notifier Settings section and input the values for Team Domain & Integration Token, which can be found on the Slack Jenkins CI integration page. The other fields are optional. See the help text by clicking the question mark icon next to the fiields for more information. Press the save button when you're done.

  • For each Project that you would like receive notifications for, choose Configure from the project's menu.

  • In the Slack Notifications section, choose the events you'd like to be notified about.

  • You'll also need to add Slack Notifications to the Post-build Actions for this project.

Discussion

results matching ""

    No results matching ""