Skip to content

Commit

Permalink
Fail hard of Windows when a command fails (#569)
Browse files Browse the repository at this point in the history
Do not use /b on error routines to let Windows kill the whole terminal
so the build scripts don't keep running.
  • Loading branch information
j-rivero authored Dec 7, 2021
1 parent 53ff52c commit 2e53e75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jenkins-scripts/lib/colcon-default-devel-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ goto :EOF

:error - error routine
echo Failed with error #%errorlevel%.
exit /b %errorlevel%
exit %errorlevel%
2 changes: 1 addition & 1 deletion jenkins-scripts/lib/windows_library.bat
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,4 @@ goto :EOF
:error - error routine
::
echo Failed in windows_library with error #%errorlevel%.
exit /B %errorlevel%
exit %errorlevel%

0 comments on commit 2e53e75

Please sign in to comment.