Skip to content

Commit c6008f0

Browse files
committed
I don't know why this 403'd, try again.
1 parent c5ae06d commit c6008f0

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

build/Helix/ProcessHelixFiles.ps1

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ Param(
99

1010
$helixLinkFile = "$OutputFolder\LinksToHelixTestFiles.html"
1111

12-
$accessTokenParam = ""
13-
if($HelixAccessToken)
14-
{
15-
$accessTokenParam = "?access_token=$HelixAccessToken"
16-
}
1712

1813
function Generate-File-Links
1914
{
@@ -57,7 +52,6 @@ foreach ($testRun in $testRuns.value)
5752

5853
foreach ($testResult in $testResults.value)
5954
{
60-
6155
$info = ConvertFrom-Json $testResult.comment
6256
$helixJobId = $info.HelixJobId
6357
$helixWorkItemName = $info.HelixWorkItemName
@@ -104,7 +98,10 @@ foreach ($testRun in $testRuns.value)
10498
New-Item $fullPath -ItemType Directory
10599
}
106100

107-
$link = "$($pgcFile.Link)$accessTokenParam"
101+
$link = $pgcFile.Link
102+
103+
Write-Host "Downloading $link to $destination"
104+
108105
$webClient.DownloadFile($link, $destination)
109106
}
110107
}

0 commit comments

Comments
 (0)