Documentation forSolarWinds Incident Response

Jenkins Integration

This documentation will help you integrate Jenkins Build Job with Incident Response.

With this, you will be able to bring in your build updates, such as success and failure statuses as incidents on Incident Response.

Integrate with the Jenkins Plugin

Note:
This user will be used with curl command to fetch the Jenkins job status.

In Incident Response:

  • Navigate to Services -> Service Overview -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click Add.

  • Select Jenkins. Copy the displayed Webhook URL to configure it within Jenkins. Finish by clicking Add Alert Source -> Done.

When an alert source turns Active, it’ll show up under Configured Alert Sources, you can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source. An Alert Source is active if there is a recorded incident via that Alert Source for the Service.

  • Add a Post-build task and run the following command in the Script text box.

  • Replace the API URL here with the API Webhook URL you see on Incident Response for the created service.

  • Replace username and password with your Jenkins username and password.

curl https://raw.githubusercontent.com/SquadcastHub/Integration-scripts/master/jenkins/send-data-to-squadcast.py | python3 - --url *EnterSquadcastAPIURLHere* --username *EnterYourJenkinsUsername* --password *TypeYourJenkinsPassword*

What we recommend:

We highly recommend cloning this repo and using your repo link in the above curl call. This will allow you to customize your incident description.

Sample incident created in Incident Response-App