[ci]: use build-template for pr build
Signed-off-by: Guohan Lu <lguohan@gmail.com>
This commit is contained in:
parent
54abfd560a
commit
092f5378bb
@ -34,66 +34,19 @@ stages:
|
|||||||
pool: sonicbld
|
pool: sonicbld
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job:
|
- template: .azure-pipelines/build-template.yml
|
||||||
displayName: "broadcom"
|
parameters:
|
||||||
timeoutInMinutes: 600
|
platform: broadcom
|
||||||
steps:
|
platform_short: brcm
|
||||||
- script: |
|
cache_mode: rcache
|
||||||
sudo rm -rf fsroot
|
sync_rpc_image: true
|
||||||
username=$(id -un)
|
|
||||||
sudo chown -R ${username}.${username} .
|
|
||||||
displayName: 'Cleanup'
|
|
||||||
- checkout: self
|
|
||||||
clean: true
|
|
||||||
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"
|
|
||||||
ENABLE_DOCKER_BASE_PULL=y make configure PLATFORM=broadcom
|
|
||||||
trap "sudo rm -rf fsroot" EXIT
|
|
||||||
make USERNAME=admin SONIC_BUILD_JOBS=$(nproc) $CACHE_OPTIONS target/sonic-broadcom.bin && \
|
|
||||||
ENABLE_SYNCD_RPC=y make USERNAME=admin SONIC_BUILD_JOBS=$(nproc) $CACHE_OPTIONS target/docker-syncd-brcm-rpc.gz
|
|
||||||
displayName: 'Build sonic image'
|
|
||||||
- publish: $(System.DefaultWorkingDirectory)/
|
|
||||||
artifact: sonic-buildimage.broadcom
|
|
||||||
displayName: "Archive sonic image"
|
|
||||||
|
|
||||||
- job:
|
- template: .azure-pipelines/build-template.yml
|
||||||
displayName: "mellanox"
|
parameters:
|
||||||
timeoutInMinutes: 600
|
platform: mellanox
|
||||||
steps:
|
platform_short: mlnx
|
||||||
- script: |
|
cache_mode: rcache
|
||||||
sudo rm -rf fsroot
|
sync_rpc_image: true
|
||||||
username=$(id -un)
|
|
||||||
sudo chown -R ${username}.${username} .
|
|
||||||
displayName: 'Cleanup'
|
|
||||||
- checkout: self
|
|
||||||
clean: true
|
|
||||||
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"
|
|
||||||
ENABLE_DOCKER_BASE_PULL=y make configure PLATFORM=mellanox
|
|
||||||
trap "sudo rm -rf fsroot" EXIT
|
|
||||||
make USERNAME=admin SONIC_BUILD_JOBS=$(nproc) $CACHE_OPTIONS target/sonic-mellanox.bin && \
|
|
||||||
ENABLE_SYNCD_RPC=y make USERNAME=admin SONIC_BUILD_JOBS=$(nproc) $CACHE_OPTIONS target/docker-syncd-mlnx-rpc.gz
|
|
||||||
displayName: 'Build sonic image'
|
|
||||||
- publish: $(System.DefaultWorkingDirectory)/
|
|
||||||
artifact: sonic-buildimage.mellanox
|
|
||||||
displayName: "Archive sonic image"
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
displayName: "kvm"
|
displayName: "kvm"
|
||||||
|
Loading…
Reference in New Issue
Block a user