Help with sourcemaps
Description
I tried the following for uploading sourcemaps from our CI pipeline:
sentry-cli --url https://our.glitchtip --auth-token $GLITCHTIP_TOKEN \
releases --org org --project=frontend files "fr-$CI_COMMIT_SHA" upload-sourcemaps dist/app/
The output I get is encouraging:
> Found 111 release files
> Analyzing 111 sources
> Rewriting sources
> Adding source map references
> Bundled 111 files for upload
> Uploaded release files to Sentry
> File processing complete
> Organization: org
> Project: frontend
> Release: fr-97a258ce763ca8a0ada6c20c7947e98d5bf6c2f5
> Dist: None
Source Map Upload Report
Scripts
~/assets/fallbacks/ie/ie-checker.js
<snip>
Minified Scripts
~/assets/tinymce/langs/de.js (no sourcemap ref)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/assets/tinymce/langs/de.js)
<snip>
~/common.4aa426fc087e9e4d.js (sourcemap at common.4aa426fc087e9e4d.js.map)
~/default-node_modules_angular_material_fesm2015_expansion_mjs.0ade7e4acf0e49bb.js (sourcemap at default-node_modules_angular_material_fesm2015_expansion_mjs.0ade7e4acf0e49bb.js.map)
~/default-node_modules_angular_material_fesm2015_list_mjs.b4c6cbd6a3adab29.js (sourcemap at default-node_modules_angular_material_fesm2015_list_mjs.b4c6cbd6a3adab29.js.map)
<snip>
~/main.194273dc7d3c9a6f.js (sourcemap at main.194273dc7d3c9a6f.js.map)
Source Maps
~/assets/pdfjs/build/pdf.js.map
~/assets/pdfjs/build/pdf.worker.js.map
<snip>
~/main.194273dc7d3c9a6f.js.map
The release gets created, or at least I see it:
But there are no files inside
And the error report mentions the release but not the sourcemaps
I tried also wrapping that command in release new
and release finalize
, but no change.
Am I doing something wrong?
Edited by Massimo Redaelli