Skip to content

Commit 406f4f8

Browse files
Fix path for Get-ChildItem (#4976)
1 parent 3aed854 commit 406f4f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.vsts.release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ extends:
258258
259259
Get-ChildItem -LiteralPath "$(System.ArtifactsDirectory)/agent" | ForEach-Object {
260260
$target=$_
261-
Get-ChildItem -LiteralPath "$(System.ArtifactsDirectory)/agent/$target" -Include "*.zip","*.tar.gz" | ForEach-Object {
261+
$FullPath = $target.FullName
262+
Get-ChildItem -LiteralPath "$FullPath" -Include "*.zip","*.tar.gz" | ForEach-Object {
262263
$executable = $_
263264
Write-Host "Uploading $executable to BlobStorage vstsagentpackage/$container/$versionDir"
264265
Set-AzStorageBlobContent -Context $storageContext -Container $container -File "$(System.ArtifactsDirectory)/agent/$target/$executable" -Blob "$versionDir/$executable" -Force
@@ -275,6 +276,7 @@ extends:
275276
displayName: Delete Azure Blob container with test agent version
276277
condition: and(succeeded(), eq(variables.IsTestRun, 'True'))
277278
inputs:
279+
pwsh: true
278280
azurePowerShellVersion: 'LatestVersion'
279281
azureSubscription: 'azure-pipelines-agent-vstsagentpackage-oauth'
280282
scriptType: 'InlineScript'

0 commit comments

Comments
 (0)