Skip to content

Commit 069f752

Browse files
author
Ubuntu
committed
Support marvell-armhf pr checks
1 parent d9fd395 commit 069f752

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.azure-pipelines/azure-pipelines-image-template.yml

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

azure-pipelines.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ resources:
3131
endpoint: build
3232

3333
stages:
34-
- stage: Build
34+
- stage: BuildVS
3535
pool: sonicbld
3636
variables:
3737
CACHE_MODE: rcache
@@ -43,10 +43,29 @@ stages:
4343
buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}'
4444
jobGroups:
4545
- name: vs
46+
47+
- stage: Build
48+
pool: sonicbld
49+
dependsOn: []
50+
variables:
51+
CACHE_MODE: rcache
52+
${{ if eq(variables['Build.SourceBranchName'], '202012') }}:
53+
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker'
54+
jobs:
55+
- template: .azure-pipelines/azure-pipelines-build.yml
56+
parameters:
57+
buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}'
58+
jobGroups:
4659
- name: broadcom
4760
- name: mellanox
61+
- name: marvell-armhf
62+
pool: sonicbld-armhf
63+
timeoutInMinutes: 1200
64+
variables:
65+
PLATFORM_ARCH: armhf
4866

4967
- stage: Test
68+
dependsOn: BuildVS
5069
variables:
5170
- name: inventory
5271
value: veos_vtb

0 commit comments

Comments
 (0)