File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed
e2e-tests/test-applications/create-remix-app Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 1- export SENTRY_ORG=${E2E_TEST_SENTRY_ORG_SLUG}
2- export SENTRY_PROJECT=${E2E_TEST_SENTRY_TEST_PROJECT}
31export SENTRY_AUTH_TOKEN=${E2E_TEST_AUTH_TOKEN}
42
5- sentry-upload-sourcemaps
3+ sentry-upload-sourcemaps --org ${E2E_TEST_ORG} --project ${E2E_TEST_PROJECT}
Original file line number Diff line number Diff line change @@ -3,9 +3,13 @@ const SentryCli = require('@sentry/cli');
33
44const { deleteSourcemaps } = require ( './deleteSourcemaps' ) ;
55
6- const sentry = new SentryCli ( ) ;
7-
86async 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 ) {
Original file line number Diff line number Diff 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' +
You can’t perform that action at this time.
0 commit comments