-
-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow creating releases and uploading commits from MSBuild #3462
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really great! What I don't get: How do we make sure the release reported by the SDK at runtime matches the release created at built time?
Users can set the <SentryRelease>
but that has no affect on the build artifact, right? Should it?
Can we remove the leading |
Just to confirm this: If I were to set a |
Possibly. I wanted people to be able to pass anything/everything that they could via the CLI, which could be:
So yeah, at least all of those examples start with a One other possibility is they want to supply multiple parameters though... so:
In that case, what would we do? From the build settings would we drop the I figured it was better if we just let them supply the arguments as they would if they were using the CLI. |
I don't think it does. Similarly, if you set If you want those things to match, it's probably best not to set the
Just what's done by the CLI basically. We could rename the build property to |
Renamed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's looking awesome!
No not documented yet. It is demonstrated in the samples but |
Resolves #3058
Details
There are a couple of extra build properties now:
SentryCreateRelease
SentrySetCommits
SentryCreateRelease
If you set this to true then the Sentry SDK attempts to use the Sentry CLI to automatically create a release when building your project.
The release version can be supplied via a separatethe SDK will infer the version automatically from the ApplicationId, AppManifest, InformationalVersion, AssembyIdentity or the commit hash.SentryRelease
build property. If noSentryRelease
property is provided thenFor example:
SentrySetCommits
If this property is set then the Sentry SDK will automatically associate commits with the release. By default, the SDK will set commits with the
--auto
flag but you can override this to provide whatever flags you want via the optionalSentrySetCommitOptions
property.For example: