From 957ac493e6080eba28037b769f17cef12e1e15f1 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Thu, 29 Nov 2018 13:52:05 -0500 Subject: [PATCH] ci: clean git before building (#15887) --- vsts.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vsts.yml b/vsts.yml index b19286d8401..ef768405175 100644 --- a/vsts.yml +++ b/vsts.yml @@ -6,6 +6,12 @@ steps: displayName: Skip build on older branch condition: ne(variables['ELECTRON_RELEASE'], '1') +- bash: | + git clean -fdx + displayName: Clean unneeded git directories + timeoutInMinutes: 2 + condition: eq(variables['ELECTRON_RELEASE'], '1') + - bash: | echo 'Bootstrapping Electron for release build' script/bootstrap.py --target_arch=$TARGET_ARCH