Actionable build notifications in Slack with CloudBees CI Slack Integration

2 minute readExtensibilityDeveloper productivity

With CloudBees CI Slack Integration, you are proactively sent a Slack Direct Message that provides the relevant build data so you know if the build was successful, and if not what action you need to take to troubleshoot. The Slack messages include links directly to the build, test, and error details where you can take immediate corrective action.

Sample Slack message
Figure 1. Sample CloudBees Slack Integration message
  1. Build number link: The initial line of the Slack message includes the CloudBees CI build number that links to the build in CloudBees CI.

  2. Link to SCM repository: Below the initial line of the Slack message is a link to the repository where the code is stored, either in GitHub or Bitbucket.

  3. PR number and title with link: Below the link to the repository where the code is stored is a reference to the Pull Request number and title that links to the PR in the source code management (SCM) application (GitHub or Bitbucket).

  4. Rebuild button: When a PR cannot be successfully built in CloudBees CI, the Slack message includes a Rebuild button that will trigger a new build in CloudBees CI. When a new build is started, the previous messages that contain a Rebuild button are updated.

  5. Link to full build report in CloudBees CI: Below the build status is a link to the build report in CloudBees CI.

  6. Feedback link: Users can submit feedback on the CloudBees Slack Integration plugin using this link.

  7. JUnit test results: If you are using the JUnit plugin, test results are included in the Slack message. The Slack message will also include a link to any failed tests. If the number of failed tests exceeds a max value, we provide details for the first MAX issues.

  8. JaCoCo analysis: If you are using the JaCoCo plugin, test results are included in the Slack message.

  9. Warnings Next Generation plugin test results using a quality gate: If you are using the Warnings Next Generation plugin and have included a quality gate, the Slack message will include links and descriptions of any warnings or errors. If the number of failed tests exceeds a max value, we provide details for the first MAX issues.

  10. Pipeline Policies Analysis: If you are using the Pipeline Policies plugin, the Slack message will include an analysis of any rule violations.

See Setting up actionable build notifications in Slack for more information on enabling this feature.