CircleCI Orb for reporting deploys and uploading sourcemaps to Rollbar.
If you don't have them already, create accounts in Rollbar and CircleCI.
In order to use the Rollbar orb, your CircleCI builds need to run in environment where curl and jq are installed.
To use the Rollbar orb, reference it in your project and then use one of the included commands:
notify_deploy
notify_deploy_started
notify_deploy_finished
upload_sourcemap
Documentation for each method is available inline in orb.yml.
Here's a very simple example of a CircleCI config that uses the Rollbar orb to report a deploy starting and finishing as well as uploading sourcemaps:
version: 2.1
orbs:
rollbar: rollbar/deploy@volatile
jobs:
build:
docker:
- image: circleci/ruby:latest
environment:
ROLLBAR_ACCESS_TOKEN: {{ your `POST_SERVER_ITEM` access token here}}
ROLLBAR_ENVIRONMENT: development
steps:
- checkout
- rollbar/notify_deploy_started:
environment: $ROLLBAR_ENVIRONMENT
- rollbar/upload_sourcemap:
minified_url: https://rollbar.com/rollbar.min.js
source_map: static/js/rollbar.js.map
js_files: static/js/rollbar.js
# The rest of your build steps go here...
# Notify Rollbar when your deploy has completed successfully
- rollbar/notify_deploy_finished:
deploy_id: $ROLLBAR_DEPLOY_ID
status: succeeded
If you run into any issues, please email us at [email protected]
For bug reports, please open an issue on GitHub.
For details on how to do development work on a CircleCI orb, check out Circle CI's Orb docs.
To contribute to the Rollbar orb:
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
). - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request and submit it for review.