aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/internal_ci/windows/grpc_build_artifacts.bat
diff options
context:
space:
mode:
Diffstat (limited to 'tools/internal_ci/windows/grpc_build_artifacts.bat')
-rw-r--r--tools/internal_ci/windows/grpc_build_artifacts.bat9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/internal_ci/windows/grpc_build_artifacts.bat b/tools/internal_ci/windows/grpc_build_artifacts.bat
index c6e523697c..4d528e0128 100644
--- a/tools/internal_ci/windows/grpc_build_artifacts.bat
+++ b/tools/internal_ci/windows/grpc_build_artifacts.bat
@@ -24,8 +24,9 @@ cd /d %~dp0\..\..\..
call tools/internal_ci/helper_scripts/prepare_build_windows.bat
-python tools/run_tests/task_runner.py -f artifact windows -j 4 || goto :error
-goto :EOF
+python tools/run_tests/task_runner.py -f artifact windows -j 4
+set RUNTESTS_EXITCODE=%errorlevel%
-:error
-exit /b %errorlevel%
+bash tools/internal_ci/helper_scripts/delete_nonartifacts.sh
+
+exit /b %RUNTESTS_EXITCODE%