Skip to content

Commit

Permalink
fix: notify sentry command
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemup committed Nov 13, 2019
1 parent 2fc4a7e commit 9a46772
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions orb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ commands:
version:
description: Release version
type: string
environment:
description: The environment the build is deploying to
type: env_var_name
default: ENVIRONMENT
organization:
description: Sentry organization slug
type: string
Expand All @@ -125,16 +129,9 @@ commands:
curl -XPOST -s -H 'Content-Type: application/json' \
-H "Authorization: Bearer $<<parameters.api_key>>" --data \
"{
\"version\": \"<<parameters.version>>\",
\"url\":\"$CIRCLE_BUILD_URL\",
\"refs\":[{
\"repository\":\"$CIRCLE_PROJECT_REPONAME\",
\"commit\":\"$CIRCLE_SHA1\"
}],
\"projects\":[
\"$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME\"
]
}" "https://sentry.io/api/0/organizations/<<parameters.organization>>/releases/"
\"environment\":\"$<<parameters.environment>>\",
\"url\":\"$CIRCLE_BUILD_URL\"
}" "https://sentry.io/api/0/organizations/<<parameters.organization>>/releases/<<parameters.tag>>/deploys/"
fi
name: Sentry - Sending Deploy Event
when: on_success
Expand Down

0 comments on commit 9a46772

Please sign in to comment.