Skip to content

Commit a730a93

Browse files
fix(snapshots): use sentry-cli snapshots upload instead of build snapshots
Co-authored-by: no <nelson.osacky@sentry.io>
1 parent 22160cb commit a730a93

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/fastlane/plugin/sentry/actions/sentry_upload_snapshots.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def self.run(params)
1111
UI.user_error!("Path is not a directory: #{path}") unless File.directory?(path)
1212

1313
command = [
14-
"build",
1514
"snapshots",
15+
"upload",
1616
"--app-id",
1717
app_id,
1818
path

spec/sentry_upload_snapshots_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
Dir.mktmpdir do |path|
3636
expect(Fastlane::Helper::SentryConfig).to receive(:parse_api_params).and_return(true)
3737
expect(Fastlane::Helper::SentryHelper).to receive(:call_sentry_cli).with(
38-
anything, ["build", "snapshots", "--app-id", "com.example.app", path]
38+
anything, ["snapshots", "upload", "--app-id", "com.example.app", path]
3939
).and_return(true)
4040

4141
described_class.new.parse("lane :test do
@@ -54,7 +54,7 @@
5454
expect(Fastlane::Helper::SentryConfig).to receive(:parse_api_params).and_return(true)
5555
expect(Fastlane::Helper::SentryHelper).to receive(:call_sentry_cli).with(
5656
anything,
57-
["build", "snapshots", "--app-id", "com.example.app", path,
57+
["snapshots", "upload", "--app-id", "com.example.app", path,
5858
"--head-sha", "abc123", "--base-sha", "def456",
5959
"--vcs-provider", "github", "--head-repo-name", "test/repo",
6060
"--base-repo-name", "test/repo", "--head-ref", "feature",
@@ -85,7 +85,7 @@
8585
expect(Fastlane::Helper::SentryConfig).to receive(:parse_api_params).and_return(true)
8686
expect(Fastlane::Helper::SentryHelper).to receive(:call_sentry_cli).with(
8787
anything,
88-
["build", "snapshots", "--app-id", "com.example.app", path, "--force-git-metadata"]
88+
["snapshots", "upload", "--app-id", "com.example.app", path, "--force-git-metadata"]
8989
).and_return(true)
9090

9191
described_class.new.parse("lane :test do
@@ -105,7 +105,7 @@
105105
expect(Fastlane::Helper::SentryConfig).to receive(:parse_api_params).and_return(true)
106106
expect(Fastlane::Helper::SentryHelper).to receive(:call_sentry_cli).with(
107107
anything,
108-
["build", "snapshots", "--app-id", "com.example.app", path, "--no-git-metadata"]
108+
["snapshots", "upload", "--app-id", "com.example.app", path, "--no-git-metadata"]
109109
).and_return(true)
110110

111111
described_class.new.parse("lane :test do

0 commit comments

Comments
 (0)