Update logging to stop masking return code (#11231)

This commit is contained in:
John Luo 2019-06-14 11:23:55 -07:00 committed by GitHub
parent e727101957
commit 65c8e1f5a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,6 @@
@ECHO OFF @ECHO OFF
SETLOCAL SETLOCAL
PowerShell -NoProfile -NoLogo -ExecutionPolicy Bypass -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; try { & '%~dp0build.ps1' %*; exit $LASTEXITCODE } catch { write-host $_; exit 1 }" PowerShell -NoProfile -NoLogo -ExecutionPolicy Bypass -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; try { & '%~dp0build.ps1' %*; exit $LASTEXITCODE } catch { write-host $_; exit 1 }"
ECHO build.cmd completed SET exit_code=%ERRORLEVEL%
ECHO build.cmd completed
EXIT /b %exit_code%

View File

@ -1,4 +1,6 @@
@ECHO OFF @ECHO OFF
SET RepoRoot=%~dp0..\.. SET RepoRoot=%~dp0..\..
%RepoRoot%\build.cmd -ci -all -pack -sign %* %RepoRoot%\build.cmd -ci -all -pack -sign %*
ECHO cibuild.cmd completed SET exit_code=%ERRORLEVEL%
ECHO build.cmd completed
EXIT /b %exit_code%