Skip to content

Commit

Permalink
Support dpkg cache for mlnx (sonic-net#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
xumia authored Apr 23, 2020
1 parent 1f0440b commit 5a9d3b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion jenkins/mellanox/buildimage-mlnx-all-pr/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
'''
}
}
Expand Down
3 changes: 2 additions & 1 deletion jenkins/mellanox/buildimage-mlnx-all-released-pr/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
'''
}
}
Expand Down
7 changes: 4 additions & 3 deletions jenkins/mellanox/buildimage-mlnx-all/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
'''
}
}
Expand Down

0 comments on commit 5a9d3b7

Please sign in to comment.