You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 4, 2023. It is now read-only.
Allow users to override the repository name passed to the cli.
This is useful for gitlab users where the repository name is not necessarily the same
as the URL (#21)
Copy file name to clipboardExpand all lines: README.md
+24-20Lines changed: 24 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ The Sentry Netlify build plugin:
9
9
10
10
Before proceeding, you'll first want to ensure that your Sentry project is set up properly to track commit metadata. The easiest way to do that is to [install a repository integration](https://docs.sentry.io/product/releases/#install-repo-integration).
11
11
12
+
By default, the linked Sentry repository will be parsed from the Netlify's `REPOSITORY_URL` environment variable. This behaviour can be overridden using the `SENTRY_REPOSITORY` environment variable.
13
+
12
14
Make sure build plugins are enabled on your site to see the plugin run.
13
15
14
16
## Installation
@@ -58,26 +60,28 @@ To link errors with releases, you must include a release ID (a.k.a version) wher
58
60
#### Environment Variables
59
61
60
62
You can use [site environment variables](https://docs.netlify.com/configure-builds/environment-variables/) to configure these values:
61
-
| name | description | default |
62
-
|------|-------------|---------|
63
-
|`SENTRY_AUTH_TOKEN`| Authentication token for Sentry. | - |
64
-
|`SENTRY_ORG`| The slug of the organization name in Sentry. | - |
65
-
|`SENTRY_PROJECT`| The slug of the project name in Sentry. | - |
66
-
|`SENTRY_RELEASE`| The release ID (a.k.a version). |[COMMIT_REF](https://docs.netlify.com/configure-builds/environment-variables/#git-metadata)|
67
-
|`SENTRY_ENVIRONMENT`| The name of the environment being deployed to. | Netlify [deploy context](https://docs.netlify.com/site-deploys/overview/#deploy-contexts)|
68
-
|`SENTRY_RELEASE_PREFIX`| Set this to prefix the release name with the value. | - |
|`SENTRY_AUTH_TOKEN`| Authentication token for Sentry. | - |
66
+
|`SENTRY_ORG`| The slug of the organization name in Sentry. | - |
67
+
|`SENTRY_PROJECT`| The slug of the project name in Sentry. | - |
68
+
|`SENTRY_RELEASE`| The release ID (a.k.a version). |[COMMIT_REF](https://docs.netlify.com/configure-builds/environment-variables/#git-metadata)|
69
+
|`SENTRY_REPOSITORY`| The name of the target Sentry repository. | - |
70
+
|`SENTRY_ENVIRONMENT`| The name of the environment being deployed to. | Netlify [deploy context](https://docs.netlify.com/site-deploys/overview/#deploy-contexts)|
71
+
|`SENTRY_RELEASE_PREFIX`| Set this to prefix the release name with the value. | - |
69
72
70
73
71
74
#### Plugin Inputs
72
-
| name | description | default |
73
-
|------|-------------|---------|
74
-
|`sentryOrg`| The slug of the organization name in Sentry. | - |
75
-
|`sentryProject`| The slug of the project name in Sentry. | - |
76
-
|`sentryAuthToken`| Authentication token for Sentry. We recommend this be set as an environment variable (see below). | - |
77
-
|`sentryRelease`| The release ID (a.k.a version). |[COMMIT_REF](https://docs.netlify.com/configure-builds/environment-variables/#git-metadata)|
78
-
|`sourceMapPath`| Folder in which to scan for source maps to upload. | Netlify publish directory |
79
-
|`sourceMapUrlPrefix`| Prefix for the location of source maps. |`"~/"`|
80
-
|`skipSetCommits`| Set this to true if you want to disable commit tracking. |`false`|
81
-
|`skipSourceMaps`| Set this to true if you want to disable sending source maps to Sentry. |`false`|
82
-
|`releasePrefix`| Set this to prefix the release name with the value. | - |
83
-
|`deployPreviews`| Set this to false if you want to skip running the build plugin on deploy previews. |`true`|
|`sentryOrg`| The slug of the organization name in Sentry. | - |
78
+
|`sentryProject`| The slug of the project name in Sentry. | - |
79
+
|`sentryAuthToken`| Authentication token for Sentry. We recommend this be set as an environment variable (see below). | - |
80
+
|`sentryRelease`| The release ID (a.k.a version). |[COMMIT_REF](https://docs.netlify.com/configure-builds/environment-variables/#git-metadata)|
81
+
|`sentryRepository`| The name of the target Sentry repository. | Derived from [REPOSITORY_URL](https://docs.netlify.com/configure-builds/environment-variables/#git-metadata)|
82
+
|`sourceMapPath`| Folder in which to scan for source maps to upload. | Netlify publish directory |
83
+
|`sourceMapUrlPrefix`| Prefix for the location of source maps. |`"~/"`|
84
+
|`skipSetCommits`| Set this to true if you want to disable commit tracking. |`false`|
85
+
|`skipSourceMaps`| Set this to true if you want to disable sending source maps to Sentry. |`false`|
86
+
|`releasePrefix`| Set this to prefix the release name with the value. | - |
87
+
|`deployPreviews`| Set this to false if you want to skip running the build plugin on deploy previews. |`true`|
0 commit comments