From 3ffa352ac703a21a6f5d11a6ef48e4b0cb363690 Mon Sep 17 00:00:00 2001 From: Guohan Lu Date: Fri, 29 Jan 2021 08:53:57 -0800 Subject: [PATCH] [ci]: reset the repo Signed-off-by: Guohan Lu --- azure-pipelines.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 352b2a2655..4e35534222 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,7 +33,11 @@ stages: - checkout: self submodules: recursive displayName: 'Checkout code' - + - script: | + git submodule foreach --recursive git clean -xfdf + git submodule foreach --recursive git reset --hard + git submodule update --init --recursive + displayName: 'reset submodules' - script: | sudo modprobe overlay CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=rcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/broadcom" @@ -54,6 +58,11 @@ stages: submodules: recursive displayName: 'Checkout code' + - script: | + git submodule foreach --recursive git clean -xfdf + git submodule foreach --recursive git reset --hard + git submodule update --init --recursive + displayName: 'reset submodules' - script: | sudo modprobe overlay CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=rcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/mellanox" @@ -74,6 +83,11 @@ stages: submodules: recursive displayName: 'Checkout code' + - script: | + git submodule foreach --recursive git clean -xfdf + git submodule foreach --recursive git reset --hard + git submodule update --init --recursive + displayName: 'reset submodules' - script: | echo $(Build.BuildNumber) sudo modprobe overlay