@@ -51,19 +51,21 @@ $webClient = New-Object System.Net.WebClient
51
51
52
52
foreach ($testRun in $testRuns.value )
53
53
{
54
+ Write-Host " testRunUri = $testRun .url"
54
55
$testResults = Invoke-RestMethod - Uri " $ ( $testRun.url ) /results?api-version=5.0" - Method Get - Headers $azureDevOpsRestApiHeaders
55
56
$isTestRunNameShown = $false
56
57
57
58
foreach ($testResult in $testResults.value )
58
59
{
59
- if (" comment" -in $testResult )
60
- {
60
+
61
61
$info = ConvertFrom-Json $testResult.comment
62
62
$helixJobId = $info.HelixJobId
63
63
$helixWorkItemName = $info.HelixWorkItemName
64
64
65
65
$workItem = " $helixJobId -$helixWorkItemName "
66
66
67
+ Write-Host " Helix Work Item = $workItem "
68
+
67
69
if (-not $workItems.Contains ($workItem ))
68
70
{
69
71
$workItems.Add ($workItem )
@@ -89,9 +91,9 @@ foreach ($testRun in $testRuns.value)
89
91
90
92
foreach ($pgcFile in $pgcFiles )
91
93
{
92
- $flavorPath = $pgcFile .Name .Split (' .' )[0 ]
93
- $archPath = $pgcFile .Name .Split (' .' )[1 ]
94
- $fileName = $pgcFile.Name.Remove ( 0 , $flavorPath .length + $archPath .length + 2 )
94
+ $flavorPath = $testResult .automatedTestName .Split (' .' )[0 ]
95
+ $archPath = $testResult .automatedTestName .Split (' .' )[1 ]
96
+ $fileName = $pgcFile.Name
95
97
$fullPath = " $OutputFolder \PGO\$flavorPath \$archPath "
96
98
$destination = " $fullPath \$fileName "
97
99
@@ -107,6 +109,6 @@ foreach ($testRun in $testRuns.value)
107
109
}
108
110
}
109
111
}
110
- }
112
+
111
113
}
112
114
}
0 commit comments