File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 11
11
- pwsh : |
12
12
$version = $(Get-Content "$(Build.SourcesDirectory)/eng/common/testproxy/target_version.txt" -Raw).Trim()
13
13
$overrideVersion = "${{ parameters.targetVersion }}"
14
-
14
+
15
15
if($overrideVersion) {
16
16
Write-Host "Overriding default target proxy version of '$version' with override $overrideVersion."
17
17
$version = $overrideVersion
@@ -47,3 +47,18 @@ steps:
47
47
displayName: "Run the testproxy - linux/mac"
48
48
condition: and(succeeded(), ne(variables['Agent.OS'],'Windows_NT'))
49
49
workingDirectory: "${{ parameters.rootFolder }}"
50
+
51
+ - pwsh : |
52
+ for ($i = 0; $i -lt 10; $i++) {
53
+ try {
54
+ Invoke-WebRequest -Uri "http://localhost:5000/Admin/IsAlive" | Out-Null
55
+ exit 0
56
+ } catch {
57
+ Write-Warning "Failed to successfully connect to test proxy. Retrying..."
58
+ Start-Sleep 6
59
+ }
60
+ }
61
+ Write-Error "Could not connect to test proxy."
62
+ exit 1
63
+ displayName: Test Proxy IsAlive
64
+
You can’t perform that action at this time.
0 commit comments