Skip to content

Commit

Permalink
Fail Deprecated Xamarin Test Cloud Task (#19474)
Browse files Browse the repository at this point in the history
* Fail Deprecated Xamarin Test Cloud Task

* commit changes to fix test

* change feature flag retrieve code

* bump task version
  • Loading branch information
Pranshu-Negi authored Jan 26, 2024
1 parent 7198b9a commit 090a708
Show file tree
Hide file tree
Showing 11 changed files with 250 additions and 210 deletions.
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."
}
Write-Verbose "Leaving script XamarinTestCloud.ps1"
Loading

0 comments on commit 090a708

Please sign in to comment.