Track events from Bitbucket Pipelines using the OpsTrails pipe.
OPSTRAILS_API_KEY with a READ_WRITE API keypipelines:
default:
- step:
name: Deploy
script:
- ./deploy.sh
after-script:
- pipe: opstrails/opstrails-track-event:1.0.0
variables:
OPSTRAILS_API_KEY: $OPSTRAILS_API_KEY
EVENT_TYPE: "deployment"
EVENT_SUBJECT: "production"
EVENT_VERSION: $BITBUCKET_TAG| Variable | Required | Description |
|---|---|---|
OPSTRAILS_API_KEY | required | OpsTrails API key (READ_WRITE scope) |
EVENT_TYPE | required | Event type |
EVENT_SUBJECT | optional | Target environment |
EVENT_VERSION | optional | Release version or tag |