Manage releases in Sentry, can be used to upload sourcemaps.
Add the resource type to your pipeline:
resource_types:
- name: sentry-releases
type: docker-image
source:
repository: rubenv/concourse-sentry-releases-resource
host
: Optional. URL to the Sentry server, useshttps://sentry.io
by default.token
: Required. API token.organization
: Required. Organization name.project
: Required. Project name.
Checks for new releases.
Fetches a release.
Creates a new release, optionally uploads files (e.g. source files and source maps).
version_from
: Required. File from which the version ID should be read.files
: Optional. Folder containing files to upload.url_prefix
: Optional. URL prefix to apply, defaults to~/
.
Define the resource:
resources:
- name: myproject-releases
type: sentry-releases
source:
token: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
organization: myorg
project: myproject
Add to job:
jobs:
# ...
plan:
- put: myproject-releases
params:
version_from: build-output/release-id
files: build-output/js/
url_prefix: ~/js/