From d61472777f1159bb32f81d9ed93feb09601bd062 Mon Sep 17 00:00:00 2001 From: liuh-80 Date: Fri, 30 Sep 2022 04:52:36 +0000 Subject: [PATCH 1/3] Fix pipeline issue --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 26a86dffa01e..6c209e57c33b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -113,6 +113,7 @@ stages: - script: | set -x + sudo apt-get install libyang libyang-dev sudo dpkg -i --force-confask,confnew ../libswsscommon_1.0.0_amd64.deb sudo dpkg -i ../python3-swsscommon_1.0.0_amd64.deb sudo docker load -i ../target/docker-sonic-vs.gz From f48a58d4fcd85467d735c897b50fed6724ad0600 Mon Sep 17 00:00:00 2001 From: liuh-80 Date: Fri, 30 Sep 2022 05:17:12 +0000 Subject: [PATCH 2/3] Fix yang version --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6c209e57c33b..928fbd8aa5c9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -113,7 +113,7 @@ stages: - script: | set -x - sudo apt-get install libyang libyang-dev + sudo apt-get install libyang0.16 sudo dpkg -i --force-confask,confnew ../libswsscommon_1.0.0_amd64.deb sudo dpkg -i ../python3-swsscommon_1.0.0_amd64.deb sudo docker load -i ../target/docker-sonic-vs.gz From 6e0da678d49015cb2edf74f91d1d380cb3b090d5 Mon Sep 17 00:00:00 2001 From: liuh-80 Date: Fri, 30 Sep 2022 06:46:24 +0000 Subject: [PATCH 3/3] Improve install yang command --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 928fbd8aa5c9..a9004af559ef 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -113,7 +113,8 @@ stages: - script: | set -x - sudo apt-get install libyang0.16 + sudo apt-get update + sudo apt-get install libyang0.16 -y sudo dpkg -i --force-confask,confnew ../libswsscommon_1.0.0_amd64.deb sudo dpkg -i ../python3-swsscommon_1.0.0_amd64.deb sudo docker load -i ../target/docker-sonic-vs.gz