Search results for "{{ search.query }}"

No results found for "{{search.query}}". 
View All Results


Report deploys to Rollbar from Jenkins

Jenkins Deploy Integration

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:

curl \
  -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

: Your project access token. Required.

: Name of the environment being deployed, e.g. "production". Required.

: The deployment artifact version (Required). Here the Jenkins environment variable GIT_COMMIT is used which will automatically populates the git commit sha. If using git, use the full sha. This can be any version number like BUILD_NUMBER or project maven pom version number. Required.

: User who deployed. Optional. (Ex: jenkins_user).

: Rollbar username of the user who deployed. Optional.

: Deploy comment (e.g. what is being deployed). Optional.


Report deploys to Rollbar from Jenkins