Skip to content

Commit

Permalink
I don't know why this 403'd, try again.
Browse files Browse the repository at this point in the history
  • Loading branch information
miniksa committed May 8, 2021
1 parent c5ae06d commit c6008f0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions build/Helix/ProcessHelixFiles.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ Param(

$helixLinkFile = "$OutputFolder\LinksToHelixTestFiles.html"

$accessTokenParam = ""
if($HelixAccessToken)
{
$accessTokenParam = "?access_token=$HelixAccessToken"
}

function Generate-File-Links
{
Expand Down Expand Up @@ -57,7 +52,6 @@ foreach ($testRun in $testRuns.value)

foreach ($testResult in $testResults.value)
{

$info = ConvertFrom-Json $testResult.comment
$helixJobId = $info.HelixJobId
$helixWorkItemName = $info.HelixWorkItemName
Expand Down Expand Up @@ -104,7 +98,10 @@ foreach ($testRun in $testRuns.value)
New-Item $fullPath -ItemType Directory
}

$link = "$($pgcFile.Link)$accessTokenParam"
$link = $pgcFile.Link

Write-Host "Downloading $link to $destination"

$webClient.DownloadFile($link, $destination)
}
}
Expand Down

1 comment on commit c6008f0

@github-actions

This comment was marked as duplicate.

Please sign in to comment.