Skip to content
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

Fail Deprecated Xamarin Test Cloud Task #19474

Merged
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@
"loc.input.label.optionalArgs": "Optional arguments",
"loc.input.help.optionalArgs": "Additional arguments passed to test-cloud.exe.",
"loc.input.label.publishNUnitResults": "Publish results to Azure Pipelines",
"loc.input.help.publishNUnitResults": "When selected, --nunit-xml option will be passed to test-cloud.exe. Results from the NUnit xml file will be published to Azure Pipelines."
"loc.input.help.publishNUnitResults": "When selected, --nunit-xml option will be passed to test-cloud.exe. Results from the NUnit xml file will be published to Azure Pipelines.",
"loc.messages.DeprecatedTask": "The XamarinTestCloud@1 (Xamarin Test Cloud) task has been deprecated since January 11, 2018 and will soon be retired. Use the AppCenterDistribute@3 task instead."
}
7 changes: 7 additions & 0 deletions Tasks/XamarinTestCloudV1/XamarinTestCloud.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,11 @@ if($testCloudResults)
Write-Host "##vso[task.addattachment type=Distributedtask.Core.Summary;name=Xamarin Test Cloud Results;]$mdReportFile"
}

$featureFlags = @{
failDeprecatedBuildTask = [System.Convert]::ToBoolean($env:FAIL_DEPRECATED_BUILD_TASK)
}
if ($featureFlags.failDeprecatedBuildTask)
{
throw "The XamarinTestCloud@1 (Xamarin Test Cloud) task has been deprecated since January 11, 2018 and will soon be retired. Use the AppCenterDistribute@3 task instead."
Pranshu-Negi marked this conversation as resolved.
Show resolved Hide resolved
}
Write-Verbose "Leaving script XamarinTestCloud.ps1"
Loading