Skip to content

Commit b5c2319

Browse files
committed
Publish azcopy logs
1 parent 281f565 commit b5c2319

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/azure-pipelines/test-modified-ports.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,13 @@ if ((-Not [string]::IsNullOrWhiteSpace($ArchivesRoot))) {
8484
$buildtreesRoot = Join-Path $WorkingRoot 'b'
8585
$installRoot = Join-Path $WorkingRoot 'installed'
8686
$packagesRoot = Join-Path $WorkingRoot 'p'
87+
$failureLogs = Join-Path $ArtifactStagingDirectory 'failure-logs'
8788

88-
$env:AZCOPY_LOG_LOCATION = Join-Path $ArtifactStagingDirectory 'failure-logs/azcopy-logs'
89+
$env:AZCOPY_LOG_LOCATION = Join-Path $failureLogs 'azcopy-logs'
8990
$env:AZCOPY_JOB_PLAN_LOCATION = Join-Path $WorkingRoot 'azcopy-plans'
9091

92+
New-Item -Type Directory -Path $env:AZCOPY_LOG_LOCATION -Force | Out-Null
93+
9194
$commonArgs = @(
9295
"--x-buildtrees-root=$buildtreesRoot",
9396
"--x-install-root=$installRoot",
@@ -163,7 +166,6 @@ if ($lastLastExitCode -eq 0)
163166
Write-Host "##vso[task.setvariable variable=FAILURE_LOGS_EMPTY]$true"
164167
exit $lastLastExitCode
165168

166-
$failureLogs = Join-Path $ArtifactStagingDirectory 'failure-logs'
167169
$failureLogsArg = "--failure-logs=$failureLogs"
168170
$knownFailuresFromArgs = @()
169171
if ($testFeatures) {

0 commit comments

Comments
 (0)