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}
3
1
export SENTRY_AUTH_TOKEN=${E2E_TEST_AUTH_TOKEN}
4
2
5
- sentry-upload-sourcemaps
3
+ sentry-upload-sourcemaps --org ${E2E_TEST_SENTRY_ORG_SLUG} --project ${E2E_TEST_SENTRY_TEST_PROJECT}
Original file line number Diff line number Diff line change @@ -3,9 +3,13 @@ const SentryCli = require('@sentry/cli');
3
3
4
4
const { deleteSourcemaps } = require ( './deleteSourcemaps' ) ;
5
5
6
- const sentry = new SentryCli ( ) ;
7
-
8
6
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
+
9
13
let release ;
10
14
11
15
if ( ! argv . release ) {
Original file line number Diff line number Diff line change @@ -15,6 +15,18 @@ const argv = yargs(process.argv.slice(2))
15
15
"If not provided, a new release id will be determined by Sentry CLI's `propose-version`.\n" +
16
16
'See: https://docs.sentry.io/product/releases/suspect-commits/#using-the-cli\n' ,
17
17
} )
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
+ } )
18
30
. option ( 'urlPrefix' , {
19
31
type : 'string' ,
20
32
describe : 'URL prefix to add to the beginning of all filenames' ,
@@ -38,6 +50,9 @@ const argv = yargs(process.argv.slice(2))
38
50
. usage (
39
51
'Usage: $0\n' +
40
52
' [--release RELEASE]\n' +
53
+ ' [--org ORG]\n' +
54
+ ' [--project PROJECT]\n' +
55
+ ' [--url URL]\n' +
41
56
' [--urlPrefix URL_PREFIX]\n' +
42
57
' [--buildPath BUILD_PATH]\n\n' +
43
58
' [--disableDebugIds true|false]\n\n' +
You can’t perform that action at this time.
0 commit comments