drone-sentry-plugin/script.sh
Torma Kristóf d1fd1c1994
Some checks failed
continuous-integration/drone/push Build is failing
make it more generic
2020-07-19 13:35:15 +02:00

19 lines
495 B
Bash

#!/usr/bin/env bash
echo 'Updating Sentry Project: '${SENTRY_PROJECT}
echo 'New Release: '${DRONE_REPO}':'${DRONE_COMMIT_SHA}
curl https://${SENTRY_DOMAIN}/api/0/organizations/kmlabz/releases/ \
-X POST \
-H 'Authorization: Bearer '${SENTRY_TOKEN} \
-H 'Content-Type: application/json' \
-d '
{
"version": "'${DRONE_BUILD_NUMBER}'",
"refs": [{
"repository":"'${DRONE_REPO}'",
"commit":"'${DRONE_COMMIT_SHA}'"
}],
"projects":["'${SENTRY_PROJECT}'"]
}
'