Integrating CodeScene On-Premise with Slack for Analysis Failure Alerts

Overview

This article is intended for new and existing on-premises customers of CodeScene. It highlights the importance of integrating CodeScene with Slack to receive immediate alerts when analyses fail, ensuring your code insights remain current and accurate.

Importance of Slack Integration

To fully benefit from CodeScene, it's crucial that your analyses are up-to-date. This ensures you receive accurate insights into the current state of your codebase and that the pull request integration correctly compares new code changes to the latest code. If analyses fail, they can lead to outdated insights and incorrect comparisons against old code.

Some reasons for an analysis to fail are the changing of repository names or the deletion of a repository entirely.

How to Enable Slack Notifications

Setting up Slack notifications ensures that your team is promptly informed of any analysis failures, allowing for quick remediation. If you don't currently use Slack, you can create a free account specifically for this purpose.

Steps to Enable Notifications:

  1. Navigate to the CodeScene Global Configuration Page
  2. Go to Notifications
  3. Check the option for "Use Slack Notifications" and enter your Slack details.
    Screenshot 2025-05-09 at 13.48.40
  4. Ensure that only the "Analysis Error" notification option is ticked.
    slack
  5. Click "Save Slack Notification Settings" to apply the changes.

By following these steps, you ensure that your team is immediately informed of any analysis issues, maintaining the integrity and accuracy of your code insights.