Jenkins triggers

Here's how to set up a Jenkins trigger. Once configured, you can route Jenkins Notifications to alerts in a Slack channel, create incidents tied to those alerts, and invoke Transposit workflows to remediate the incidents.

Transposit Trigger Setup #

  1. On the Transposit site, navigate to Settings > Triggers, and click Add trigger. Choose "Jenkins build integrator", enter a Slack channel, and click Add.

Add trigger in Transposit

  1. Find the trigger you just added, and copy the "Endpoint URL".

Jenkins Webhook Setup #

Install the Notification plugin #

  1. In Jenkins, Navigate to the plugin manager under Manage Jenkins > Manage Plugins, and click on the Available tab.
  2. Search for "Notification", check the box beside the plugin named "Notification", and then click the Install without restart button to install it.

    Note: If you don't see the "Notification" plugin listed, check if it is already listed in the Installed tab.

Install Jenkins plugin Notification

Edit job configuration #

  1. In Jenkins, navigate to the job you would like to call this trigger, and click Configure in the right menu. Click the Job Notifications tab in the top menu, and then click the Add Endpoint button.

Add notification endpoint to Jenkins job

  1. Set the "Event" select menu to the type of events you would like to receive alerts for, set the "URL" field to the "Endpoint URL" you copied from Transposit, and click Save.

Add notification endpoint details to Jenkins job

Jenkins is now setup to call this trigger as defined in the Job Notifications Event select menu.