Skip to content

Commit

Permalink
Fix pathes in agent publish step (#4977)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriiBobreshev authored Sep 4, 2024
1 parent 406f4f8 commit d08ab52
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .vsts.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,14 @@ extends:
Get-ChildItem -LiteralPath "$(System.ArtifactsDirectory)/agent" | ForEach-Object {
$target=$_
$FullPath = $target.FullName
Get-ChildItem -LiteralPath "$FullPath" -Include "*.zip","*.tar.gz" | ForEach-Object {
$fullPath = $target.FullName
Get-ChildItem -LiteralPath "$fullPath" -Include "*.zip","*.tar.gz" | ForEach-Object {
$executable = $_
Write-Host "Uploading $executable to BlobStorage vstsagentpackage/$container/$versionDir"
Set-AzStorageBlobContent -Context $storageContext -Container $container -File "$(System.ArtifactsDirectory)/agent/$target/$executable" -Blob "$versionDir/$executable" -Force
$uploadFiles.Add("/$container/$versionDir/$executable")
$execFullPath = $executable.FullName
$execName = $executable.Name
Write-Host "Uploading $execName to BlobStorage vstsagentpackage/$container/$versionDir"
Set-AzStorageBlobContent -Context $storageContext -Container $container -File "$execFullPath" -Blob "$versionDir/$execName" -Force
$uploadFiles.Add("/$container/$versionDir/$execName")
}
}
Write-Host "Purge Azure CDN Cache"
Expand Down

0 comments on commit d08ab52

Please sign in to comment.