Configure CircleCI for Deploy Change Investigator
Send build and deployment webhooks to track changes
Send build and deployment data from CircleCI workflows to the Deploy Change Investigator using webhook steps.
Before you begin
Deploy Change Investigator setup: Build and deploy webhook integrations created in AI SRE. Go to Deploy Change Investigator to create webhook endpoints.
CircleCI project access: Permission to edit
.circleci/config.ymland manage environment variables.Webhook URLs: Build and deploy webhook URLs from the AI SRE integrations page.
Store webhook URLs as environment variables
Store webhook URLs securely in CircleCI project settings:
Navigate to your project in the CircleCI dashboard
Click Project Settings
Select Environment Variables
Click Add Environment Variable
Create build webhook variable:
Name:
AISRE_BUILD_WEBHOOK_URLValue: Build webhook URL from AI SRE
Click Add Environment Variable
Create deploy webhook variable:
Name:
AISRE_DEPLOY_WEBHOOK_URLValue: Deploy webhook URL from AI SRE
Configure build webhooks
Add a webhook step to your build job after artifacts are published.
Docker build workflow
CircleCI environment variables
CircleCI provides these environment variables automatically:
CIRCLE_SHA1
Full commit SHA
ffac537e6cbbf934b08745a378932722df287a53
CIRCLE_BRANCH
Branch name
main
CIRCLE_PROJECT_REPONAME
Repository name
myapp
CIRCLE_PROJECT_USERNAME
GitHub or Bitbucket username
myorg
CIRCLE_REPOSITORY_URL
Git repository URL
https://github.com/myorg/myapp
CIRCLE_WORKFLOW_ID
Unique workflow identifier
abc123-def456-ghi789
CIRCLE_BUILD_NUM
Build number
1234
CIRCLE_USERNAME
User who triggered build
username
Access variables using shell syntax: $CIRCLE_SHA1
Configure deploy webhooks
Add webhook steps to deployment jobs after deployment completes.
Kubernetes deployment workflow
Step execution conditions
Control when steps execute using when attribute:
when: on_success
Previous steps succeeded
when: on_fail
Previous steps failed
when: always
Runs regardless of status
Example with conditions:
Multi-service deployments
For workflows that deploy multiple services, send all services in one webhook:
Reusable commands
Create reusable commands to standardize webhook notifications:
Workflow filters
Control which branches trigger jobs using filters:
Map services and versions
The Deploy Change Investigator requires exact matches between build and deploy webhooks:
service.name
services[].service
✅ Required
artifact.version or service.version
services[].version
✅ Required
Use the same variable ($CIRCLE_SHA1) in both build and deploy webhooks to ensure versions match.
Testing webhooks
Test build webhook
Trigger a build and confirm the build webhook reaches AI SRE:
Push a commit to trigger a build
Check build logs for the webhook step
Verify the curl command executed successfully
Navigate to AI SRE, then select Integrations
Click the More icon on the BUILD integration
Select Debug
Verify the webhook appears with the correct payload
Test deploy webhook
Run a deployment and confirm the deploy webhook reaches AI SRE:
Trigger the deployment workflow
Check the deployment job logs
Navigate to AI SRE, then select Integrations
Click the More icon on the DEPLOY integration
Select Debug
Verify the webhook appears
Verify correlation
After sending both webhooks:
Navigate to AI SRE, then select Change Management
Deployments should appear linked to builds
Click a deployment to see artifact versions and commit information
Troubleshooting
Next steps
Go to Deploy Change Investigator to complete the setup.
Go to AI Agent RCA to understand how the AI agent uses change detection during incidents.
Go to Configure Jenkins to set up webhooks in Jenkins pipelines.
Last updated
Was this helpful?