Skip to content

Commit 4278a71

Browse files
authored
feat(remix): Accept org, project and url as args to upload script (#8985)
1 parent cf75ffe commit 4278a71

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
export SENTRY_ORG=${E2E_TEST_SENTRY_ORG_SLUG}
2-
export SENTRY_PROJECT=${E2E_TEST_SENTRY_TEST_PROJECT}
31
export SENTRY_AUTH_TOKEN=${E2E_TEST_AUTH_TOKEN}
42

5-
sentry-upload-sourcemaps
3+
sentry-upload-sourcemaps --org ${E2E_TEST_SENTRY_ORG_SLUG} --project ${E2E_TEST_SENTRY_TEST_PROJECT}

Diff for: packages/remix/scripts/createRelease.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ const SentryCli = require('@sentry/cli');
33

44
const { deleteSourcemaps } = require('./deleteSourcemaps');
55

6-
const sentry = new SentryCli();
7-
86
async function createRelease(argv, URL_PREFIX, BUILD_PATH) {
7+
const sentry = new SentryCli(null, {
8+
url: argv.url,
9+
org: argv.org,
10+
project: argv.project,
11+
});
12+
913
let release;
1014

1115
if (!argv.release) {

Diff for: packages/remix/scripts/sentry-upload-sourcemaps.js

+15
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@ const argv = yargs(process.argv.slice(2))
1515
"If not provided, a new release id will be determined by Sentry CLI's `propose-version`.\n" +
1616
'See: https://docs.sentry.io/product/releases/suspect-commits/#using-the-cli\n',
1717
})
18+
.option('org', {
19+
type: 'string',
20+
describe: 'The Sentry organization slug',
21+
})
22+
.option('project', {
23+
type: 'string',
24+
describe: 'The Sentry project slug',
25+
})
26+
.option('url', {
27+
type: 'string',
28+
describe: 'The Sentry server URL',
29+
})
1830
.option('urlPrefix', {
1931
type: 'string',
2032
describe: 'URL prefix to add to the beginning of all filenames',
@@ -38,6 +50,9 @@ const argv = yargs(process.argv.slice(2))
3850
.usage(
3951
'Usage: $0\n' +
4052
' [--release RELEASE]\n' +
53+
' [--org ORG]\n' +
54+
' [--project PROJECT]\n' +
55+
' [--url URL]\n' +
4156
' [--urlPrefix URL_PREFIX]\n' +
4257
' [--buildPath BUILD_PATH]\n\n' +
4358
' [--disableDebugIds true|false]\n\n' +

0 commit comments

Comments
 (0)