Skip to content

Commit

Permalink
Fix sentry-cli syntax for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Nov 22, 2024
1 parent 2ef0d83 commit 8f4c402
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions recipes/sentrylibrary/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ def send_sentry_debug_files(self, binary_basename):

self.output.info("Uploading debug symbols to sentry")
build_source_dir = Path(self.build_folder).parent.parent.as_posix()
sentry_auth = f"--auth-token {sentry_token} -o {sentry_organization} -p {sentry_project}"
self.run(
f"sentry-cli --auth-token {sentry_token} debug-files upload --include-sources -o {sentry_organization} -p {sentry_project} {build_source_dir}")
f"sentry-cli --auth-token debug-files upload --include-sources {build_source_dir} {sentry_auth}")

if self.options.sentry_create_release:
sentry_version = self.version
if not self.options.sentry_is_production:
sentry_version += f"+{self.conan_data['commit'][:6]}"

sentry_auth = f"--auth-token {sentry_token} -o {sentry_organization} -p {sentry_project}"

# create a sentry release and link it to the commit this is based upon
self.output.info(f"Creating a new release {sentry_version} in Sentry and linking it to the current commit {self.conan_data['commit']}")
Expand All @@ -93,7 +93,7 @@ def send_sentry_debug_files(self, binary_basename):

# Create a deploy to differentiate development/production releases
environment = "production" if self.options.sentry_is_production else "development"
self.run(f"sentry-cli {sentry_auth} deploys new --release {sentry_version} -e {environment}")
self.run(f"sentry-cli deploys new --release {sentry_version} -e {environment} {sentry_auth}")


class PyReq(ConanFile):
Expand Down

0 comments on commit 8f4c402

Please sign in to comment.