Tracking deployments in Jenkins will allow you to see new errors for each deployment, determine the deployment that is suspected to have caused each error, and automatically resolve errors that were fixed in each deployment. You can read more examples in our blog Continuous Delivery with Jenkins and Rollbar.

To configure Jenkins, use the curl command to notify Rollbar of the deployment:

  -F access_token=access_token 
  -F environment=development 
  -F revision=${GIT_COMMIT} 
  -F rollbar_username=rollbar_username 
  -F local_username=jenkins_user 
  -F comment='any comments'

Place this command in your deploy script so that it runs once the deploy has completed successfully. If successful, Rollbar's API will give a JSON response like this: { "data": {} }

Replace each of the example values according to the parameter reference below. If using a version control system other than Git, change the revision= line as appropriate to set the revision ID.

Parameter Reference

  • access_token - Your project access token (required).
  • environment - Name of the environment being deployed, e.g. production (required).
  • revision - Revision number/sha being deployed. If using git, use the full sha (required).
  • local_username - User who deployed (optional).
  • rollbar_username - Rollbar username of the user who deployed (optional).
  • comment - Deploy comment (e.g. what is being deployed) (optional).