mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
Merge pull request #1849 from akv-platform/al-cheb/vs-logs-if-failed
[Windows] Provide Visual Studio setup error logs
This commit is contained in:
@@ -49,6 +49,13 @@ Function Install-VisualStudio
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$setupErrorLogPath = "$env:TEMP\dd_setup_*_errors.log"
|
||||||
|
if (Test-Path -Path $setupErrorLogPath)
|
||||||
|
{
|
||||||
|
$logErrors = Get-Content -Path $setupErrorLogPath -Raw
|
||||||
|
Write-Host "$logErrors"
|
||||||
|
}
|
||||||
|
|
||||||
Write-Host "Non zero exit code returned by the installation process : $exitCode"
|
Write-Host "Non zero exit code returned by the installation process : $exitCode"
|
||||||
exit $exitCode
|
exit $exitCode
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user