[Build]: Enable marvell-armhf PR check (#10259)

Why I did it
[Build]: Enable marvell-armhf PR check
Improve the azp dependencies, make the Test stage only depended on BuildVS stage. The Test stage will be triggered once the BuildVS stage finished, reduce the waiting time.
This commit is contained in:
xumia 2022-03-23 22:36:53 +08:00 committed by Judy Joseph
parent 4090d26d9d
commit 202dfb601d
3 changed files with 27 additions and 6 deletions

View File

@ -28,7 +28,7 @@ jobs:
- template: cleanup.yml - template: cleanup.yml
- ${{ parameters.preSteps }} - ${{ parameters.preSteps }}
- script: | - script: |
if [ -n "$(CACHE_MODE)" ] && echo $(PLATFORM_AZP) | grep -E -q "^(vs|broadcom|mellanox)$"; then if [ -n "$(CACHE_MODE)" ] && echo $(PLATFORM_AZP) | grep -E -q "^(vs|broadcom|mellanox|marvell-armhf)$"; then
CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=$(CACHE_MODE) SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/$(PLATFORM_AZP)" CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=$(CACHE_MODE) SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/$(PLATFORM_AZP)"
BUILD_OPTIONS="$(BUILD_OPTIONS) $CACHE_OPTIONS" BUILD_OPTIONS="$(BUILD_OPTIONS) $CACHE_OPTIONS"
echo "##vso[task.setvariable variable=BUILD_OPTIONS]$BUILD_OPTIONS" echo "##vso[task.setvariable variable=BUILD_OPTIONS]$BUILD_OPTIONS"

View File

@ -37,3 +37,8 @@ stages:
variables: variables:
docker_syncd_rpc_image: yes docker_syncd_rpc_image: yes
platform_rpc: mlnx platform_rpc: mlnx
- name: marvell-armhf
pool: sonicbld-armhf
timeoutInMinutes: 1200
variables:
PLATFORM_ARCH: armhf

View File

@ -31,25 +31,41 @@ resources:
name: Azure/sonic-mgmt name: Azure/sonic-mgmt
endpoint: build endpoint: build
stages:
- stage: Build
pool: sonicbld
variables: variables:
- template: .azure-pipelines/azure-pipelines-repd-build-variables.yml - template: .azure-pipelines/azure-pipelines-repd-build-variables.yml
- name: CACHE_MODE - name: CACHE_MODE
value: rcache value: rcache
stages:
- stage: BuildVS
pool: sonicbld
jobs: jobs:
- template: .azure-pipelines/azure-pipelines-build.yml - template: .azure-pipelines/azure-pipelines-build.yml
parameters: parameters:
buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}' buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}'
jobGroups: jobGroups:
- name: vs - name: vs
- stage: Build
pool: sonicbld
dependsOn: []
jobs:
- template: .azure-pipelines/azure-pipelines-build.yml
parameters:
buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}'
jobGroups:
- name: broadcom - name: broadcom
variables: variables:
swi_image: yes swi_image: yes
- name: mellanox - name: mellanox
- name: marvell-armhf
pool: sonicbld-armhf
timeoutInMinutes: 1200
variables:
PLATFORM_ARCH: armhf
- stage: Test - stage: Test
dependsOn: BuildVS
variables: variables:
- name: inventory - name: inventory
value: veos_vtb value: veos_vtb