-
-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
MS build setup does not create releases #3790
Comments
The error is coming from the sentry-dotnet/src/Sentry/buildTransitive/Sentry.targets Lines 331 to 340 in cdbec91
The sentry-dotnet/src/Sentry/buildTransitive/Sentry.targets Lines 41 to 51 in cdbec91
sentry-dotnet/src/Sentry/buildTransitive/Sentry.targets Lines 99 to 101 in cdbec91
I think we need to get a log of the value of that Ultimately, it's some MS Build debugging basically... |
Yes, the |
@InterstellarStella thanks for logging this. @jamescrosswell we are already passing -v diag for the iOS build and we have the same issue there. Here's some output from the iOS build logs
I'll kick off an Android -v diag now EDIT Task Parameter:Text=Creating Sentry Release: $(fullBuildVersionString) Is it seeing |
Can see the --project and org being "set" but I can also see this call later
Which results in this error message
Is this failing because "--org" not being passed to sentry-cli-Windows-x86_64.exe (only --project)? Note this log is from our Android build. In case it is not clear. We are not explicitly calling sentry-cli-Windows-x86_64 that is part of using the DotNetCoreCLI task with the publish command |
Thanks @munkii - that helps. ... Although it makes no sense. Here's what your logs are saying:
And here's the relevant section of the targets file where those properties get set: sentry-dotnet/src/Sentry/buildTransitive/Sentry.targets Lines 99 to 104 in cdbec91
So both This one works: <SentryCLIUploadOptions Condition="'$(SentryOrg)' != ''">$(SentryCLIUploadOptions) --org $(SentryOrg)</SentryCLIUploadOptions> But this one doesn't: <SentryReleaseOptions Condition="'$(SentryOrg)' != ''">$(SentryReleaseOptions) --org $(SentryOrg)</SentryReleaseOptions> I'd like to help further, but this defies logic... so I'm a bit stuck. |
There was a bug in the version before 4.11, got fixed here: #3600 |
We were building with 4.10, I have upgraded to 4.13.0 and we now have a Release being created . However the version number it is using for the iOS Release is indeed the literal "$(fullBuildVersionString)" I'll have a look at how we are passing that into the AzDo task For Android the version number is almost correct with the nhumber wrapped in '' The release '5.0.0.16982' is the Android one |
Hi @munkii , That is more about Azure Pipelines than it is about Sentry. It will come from either how you're passing this as a build argument and/or how you're setting an environment variable:
I'm not familiar with Azure Pipelines so can't offer much advice other than the docs. |
I have the iOS one working perfectly well now and Android one just has the '' issue which I can probably sort later. Either way we can close this. @jamescrosswell @InterstellarStella thanks for your help |
Package
Sentry.Maui
.NET Flavor
.NET
.NET Version
8.0
OS
Android
SDK Version
4.10.0
Self-Hosted Sentry Version
No response
Steps to Reproduce
The user is trying to create a Release from Azure Dev Ops pipeline for their MAUI project. They have followed this article.
The pipeline is now succeeding but the release never gets created. At the end of the logs they see the following warning:
They are specifying the org and project. Here is the YAML when they try and build for Android:
They have also tried setting them in the csproj:
Expected Result
A release is created in Sentry's releases tab.
Actual Result
They can see in the logs what looks like a successful upload of the "debug information files" but no release.
Creating a
.sentryclirc
file or usingsentry-cli login
did not help.More logs and config without scrubbing in the shadow ticket.
┆Issue is synchronized with this Jira Improvement by Unito
The text was updated successfully, but these errors were encountered: