[ci]: reset the repo

Signed-off-by: Guohan Lu <lguohan@gmail.com>
This commit is contained in:
Guohan Lu 2021-01-29 08:53:57 -08:00 committed by lguohan
parent ee4fa7b909
commit db81349bae

View File

@ -27,7 +27,11 @@ stages:
- checkout: self - checkout: self
submodules: recursive submodules: recursive
displayName: 'Checkout code' 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: | - script: |
sudo modprobe overlay sudo modprobe overlay
CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=rcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/broadcom" CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=rcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/broadcom"
@ -47,6 +51,11 @@ stages:
submodules: recursive submodules: recursive
displayName: 'Checkout code' 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: | - script: |
sudo modprobe overlay sudo modprobe overlay
CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=rcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/mellanox" CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=rcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/mellanox"
@ -66,6 +75,11 @@ stages:
submodules: recursive submodules: recursive
displayName: 'Checkout code' 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: | - script: |
echo $(Build.BuildNumber) echo $(Build.BuildNumber)
sudo modprobe overlay sudo modprobe overlay