mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
hack/ci/windows.ps1: explicitly set exit code to result of tests
Trying to see if this helps with the cleanup step exiting in CI, but Jenkins continuing to wait for the script to end afterwards. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
4ce040289a
commit
8e8c52c4ab
1 changed files with 5 additions and 0 deletions
|
@ -960,6 +960,9 @@ Catch [Exception] {
|
|||
Throw $_
|
||||
}
|
||||
Finally {
|
||||
# Preserve the LastExitCode of the tests
|
||||
$tmpLastExitCode = $LastExitCode
|
||||
|
||||
$ErrorActionPreference="SilentlyContinue"
|
||||
$global:ProgressPreference=$origProgressPreference
|
||||
Write-Host -ForegroundColor Green "INFO: Tidying up at end of run"
|
||||
|
@ -997,4 +1000,6 @@ Finally {
|
|||
|
||||
$Dur=New-TimeSpan -Start $StartTime -End $(Get-Date)
|
||||
Write-Host -ForegroundColor $FinallyColour "`nINFO: executeCI.ps1 exiting at $(date). Duration $dur`n"
|
||||
|
||||
exit $tmpLastExitCode
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue