Skip to content

Commit

Permalink
Use Sentry org and project from conf
Browse files Browse the repository at this point in the history
Contributes to CURA-11482
  • Loading branch information
jellespijker committed Jan 12, 2024
1 parent 7c84c29 commit 5299ec7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,15 @@ def build(self):
if self.options.get_safe("enable_sentry", False):
# Upload debug symbols to sentry
sentry_project = self.conf.get("user.curaengine:sentry_project", "", check_type=str)
if sentry_project == "":
sentry_org = self.conf.get("user.curaengine:sentry_org", "", check_type=str)
if sentry_project == "" or sentry_org == "":
raise ConanInvalidConfiguration("sentry_project is not set")
output = StringIO()
self.run(f"sentry-cli -V", output=output)
if "sentry-cli" not in output.getvalue():
raise ConanInvalidSystemRequirements("sentry-cli is not installed")
self.output.info("Uploading debug symbols to sentry")
self.run(f"sentry-cli debug-files upload --include-sources -o {sentry_project} -p curaengine .")
self.run(f"sentry-cli debug-files upload --include-sources -o {sentry_org} -p {sentry_project} .")


def package(self):
Expand Down

0 comments on commit 5299ec7

Please sign in to comment.