From db81349baed2e8715a97019e795ea0983455eadc 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 3b9776e51c..536682504c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,7 +27,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" @@ -47,6 +51,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" @@ -66,6 +75,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