From 2532661cd9bce6a3205c4b5174a17f4f1e48572f Mon Sep 17 00:00:00 2001 From: Liu Shilong Date: Fri, 15 Dec 2023 16:25:26 +0800 Subject: [PATCH] [ci] Enable sonic-restapi build in PR validation. (#17397) Why I did it Enable sonic-restapi build in two platform to avoid build break on restapi target. Work item tracking Microsoft ADO (number only): 26048426 How I did it How to verify it --- azure-pipelines.yml | 2 ++ rules/config | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 43ac0cb024..ca780398c4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -65,6 +65,7 @@ stages: - name: broadcom variables: swi_image: yes + INCLUDE_RESTAPI: y - name: mellanox variables: dbg_image: yes @@ -79,6 +80,7 @@ stages: timeoutInMinutes: 1200 variables: PLATFORM_ARCH: armhf + INCLUDE_RESTAPI: y - stage: Test dependsOn: BuildVS diff --git a/rules/config b/rules/config index 209129d036..70110469eb 100644 --- a/rules/config +++ b/rules/config @@ -144,7 +144,7 @@ INCLUDE_MGMT_FRAMEWORK = y ENABLE_HOST_SERVICE_ON_START = y # INCLUDE_RESTAPI - build docker-sonic-restapi for configuring the switch using REST APIs -INCLUDE_RESTAPI = n +INCLUDE_RESTAPI ?= n # INCLUDE_NAT - build docker-nat for nat support INCLUDE_NAT = y