We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e11a2e commit 20f3c84Copy full SHA for 20f3c84
eng/common/TestResources/New-TestResources.ps1
@@ -350,6 +350,10 @@ try {
350
# to determine whether resources should be removed.
351
Write-Host "Setting variable 'CI_HAS_DEPLOYED_RESOURCES': 'true'"
352
LogVsoCommand "##vso[task.setvariable variable=CI_HAS_DEPLOYED_RESOURCES;]true"
353
+ # Set resource group env variable early in cases where deployment fails as we
354
+ # still want to clean up the group. The Remove-TestResources.ps1 script consumes this var.
355
+ $envVarName = (BuildServiceDirectoryPrefix $serviceName) + "RESOURCE_GROUP"
356
+ LogVsoCommand "##vso[task.setvariable variable=$envVarName;]$ResourceGroupName"
357
}
358
359
Log "Creating resource group '$ResourceGroupName' in location '$Location'"
0 commit comments