drone-sentry-plugin/script.sh
Torma Kristóf 97c9484555
Some checks failed
continuous-integration/drone/push Build is failing
working version
2020-07-19 14:25:22 +02:00

20 lines
522 B
Bash

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