Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid error-info getting event log #817

Merged
merged 4 commits into from
Nov 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Actions/RunPipeline/RunPipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,11 @@ finally {
Write-Host "Get Event Log from container"
$eventlogFile = Get-BcContainerEventLog -containerName $containerName -doNotOpen
Copy-Item -Path $eventLogFile -Destination $containerEventLogFile
$destFolder = Join-Path $ENV:GITHUB_WORKSPACE $project
Copy-Item -Path $containerEventLogFile -Destination $destFolder
if ($project) {
# Copy event log to project folder if multiproject
$destFolder = Join-Path $ENV:GITHUB_WORKSPACE $project
Copy-Item -Path $containerEventLogFile -Destination $destFolder
}
}
}
catch {
Expand Down
Loading