Implements a Concourse CI resource type that reports a new build to Bugsnag using the Bugsnag Build API.
api_key
: Required. The Bugsnag Project API KEY
app_version
: Required. The app version. It can be a string or a path to a file (ex.master-code/.git/ref
)release_stage
: Optional. The stage (ex.staging
,production
)source_control
: Optional. Provide information about the source codeprovider
: Required. One of:github
,github-enterprise
,bitbucket
,bitbucket-server
,gitlab
,gitlab-onpremise
repository
: Required. The url of the repository (ex.https://github.com/dcsg/bugsnag-build-resource.git
)revision
: Required. The commit reference. It can be a string or a filepath (ex.master-code/.git/ref
)
---
resource_types:
- name: bugsnag-build
type: registry-image
source:
repository: dcsg/bugsnag-build-resource
resources:
- name: bugsnag-build
type: bugsnag-build
source:
api_key: '<your bugsnag project api key>'
- name: master-code
type: git
icon: git
source:
uri: https://github.com/dcsg/bugsnag-build-resource.git
branch: master
jobs:
- name: notify-bugsnag
plan:
- get: master-code
- put: bugsnag-build
params:
app_version: master-code/.git/ref
release_stage: staging
source_control:
provider: gitlab
repository: https://github.com/dcsg/bugsnag-build-resource.git
revision: master-code/.git/ref
The Bugsnag Build API have the following properties that are not yet implemented:
- appBundleVersion
- builderName
- metadata
- autoAssignRelease
- golang is required - version 1.14.x is tested; earlier versions may also work.
- docker is required - version 19.03.x is tested; earlier versions may also work.
The tests have been embedded with the Dockerfile
; ensuring that the testing
environment is consistent across any docker
enabled platform. When the docker
image builds, the test are run inside the docker container, on failure they
will stop the build.
Run the tests with the following command:
docker build -t bugsnag-build-resource -f dockerfiles/Dockerfile .
Please make all pull requests to the master
branch.