diff --git a/jenkins/mellanox/buildimage-mlnx-all-pr/Jenkinsfile b/jenkins/mellanox/buildimage-mlnx-all-pr/Jenkinsfile index d4a6c004053f..2a14be81414f 100644 --- a/jenkins/mellanox/buildimage-mlnx-all-pr/Jenkinsfile +++ b/jenkins/mellanox/buildimage-mlnx-all-pr/Jenkinsfile @@ -31,9 +31,10 @@ pipeline { git submodule foreach --recursive '[ -f .git ] && echo "gitdir: $(realpath --relative-to=. $(cut -d" " -f2 .git))" > .git' +CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=rcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/mellanox" make configure PLATFORM=mellanox touch target/debs/stretch/*.deb -make SONIC_CONFIG_BUILD_JOBS=1 all +make SONIC_CONFIG_BUILD_JOBS=1 $CACHE_OPTIONS all ''' } } diff --git a/jenkins/mellanox/buildimage-mlnx-all-released-pr/Jenkinsfile b/jenkins/mellanox/buildimage-mlnx-all-released-pr/Jenkinsfile index 13b8bde5e677..7d6eb130b80e 100644 --- a/jenkins/mellanox/buildimage-mlnx-all-released-pr/Jenkinsfile +++ b/jenkins/mellanox/buildimage-mlnx-all-released-pr/Jenkinsfile @@ -29,8 +29,9 @@ pipeline { git submodule foreach --recursive '[ -f .git ] && echo "gitdir: $(realpath --relative-to=. $(cut -d" " -f2 .git))" > .git' +CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=rcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/mellanox" make configure PLATFORM=mellanox -make SONIC_CONFIG_BUILD_JOBS=1 all +make SONIC_CONFIG_BUILD_JOBS=1 $CACHE_OPTIONS all ''' } } diff --git a/jenkins/mellanox/buildimage-mlnx-all/Jenkinsfile b/jenkins/mellanox/buildimage-mlnx-all/Jenkinsfile index 1964bfdd6e3c..fd63c5a9c01a 100644 --- a/jenkins/mellanox/buildimage-mlnx-all/Jenkinsfile +++ b/jenkins/mellanox/buildimage-mlnx-all/Jenkinsfile @@ -38,11 +38,12 @@ pipeline { git submodule foreach --recursive '[ -f .git ] && echo "gitdir: $(realpath --relative-to=. $(cut -d" " -f2 .git))" > .git' +CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=wcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/mellanox" make configure PLATFORM=mellanox -make SONIC_CONFIG_BUILD_JOBS=1 INSTALL_DEBUG_TOOLS=y target/sonic-mellanox.bin +make SONIC_CONFIG_BUILD_JOBS=1 INSTALL_DEBUG_TOOLS=y $CACHE_OPTIONS target/sonic-mellanox.bin mv target/sonic-mellanox.bin target/sonic-mellanox-dbg.bin -make SONIC_CONFIG_BUILD_JOBS=1 target/sonic-mellanox.bin -ENABLE_SYNCD_RPC=y make SONIC_CONFIG_BUILD_JOBS=1 target/docker-syncd-mlnx-rpc.gz target/docker-ptf-mlnx.gz +make SONIC_CONFIG_BUILD_JOBS=1 $CACHE_OPTIONS target/sonic-mellanox.bin +ENABLE_SYNCD_RPC=y make SONIC_CONFIG_BUILD_JOBS=1 $CACHE_OPTIONS target/docker-syncd-mlnx-rpc.gz target/docker-ptf-mlnx.gz ''' } }