From ba6c7ca4ceb464835a09fdd3382b6ac5bc44a616 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 16 Nov 2018 00:58:43 +0100 Subject: [PATCH] Removing previous builds before going on with the next one. --- .../tools/run_tests/artifacts/build_artifact_node.bat | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.bat b/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.bat index fd80f272..3b4b084d 100644 --- a/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.bat +++ b/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.bat @@ -38,12 +38,14 @@ for %%a in (%arch_list%) do ( call .\node_modules\.bin\node-pre-gyp.cmd build package --target=%%v --target_arch=%%a || goto :error xcopy /Y /I /S build\stage\* %ARTIFACTS_OUT%\ || goto :error + rmdir build /S /Q ) for %%v in (%electron_versions%) do ( cmd /V /C "set "HOME=%USERPROFILE%\electron-gyp" && call .\node_modules\.bin\node-pre-gyp.cmd configure rebuild package --runtime=electron --target=%%v --target_arch=%%a --disturl=https://atom.io/download/electron" || goto :error xcopy /Y /I /S build\stage\* %ARTIFACTS_OUT%\ || goto :error + rmdir build /S /Q ) ) if %errorlevel% neq 0 exit /b %errorlevel%