From 64ca9bb7813fb97d20c0f068b712d71bec6d8020 Mon Sep 17 00:00:00 2001 From: lguohan Date: Tue, 12 Jan 2021 05:59:50 -0800 Subject: [PATCH] [ci]: only copy artifacts when build is successful (#1590) --- azure-pipelines.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 399a06c0417f..04e850cdb09c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -63,8 +63,7 @@ jobs: submodules: true - script: | ./autogen.sh - dpkg-buildpackage -us -uc -b -j$(nproc) - cp ../*.deb . + dpkg-buildpackage -us -uc -b -j$(nproc) && cp ../*.deb . displayName: "Compile sonic swss" - publish: $(System.DefaultWorkingDirectory)/ artifact: sonic-swss @@ -124,8 +123,7 @@ jobs: submodules: true - script: | ./autogen.sh - dpkg-buildpackage -us -uc -b -j$(nproc) - cp ../*.deb . + dpkg-buildpackage -us -uc -b -j$(nproc) && cp ../*.deb . displayName: "Compile sonic swss" - publish: $(System.DefaultWorkingDirectory)/ artifact: sonic-swss.arm64 @@ -185,8 +183,7 @@ jobs: submodules: true - script: | ./autogen.sh - dpkg-buildpackage -us -uc -b -j$(nproc) - cp ../*.deb . + dpkg-buildpackage -us -uc -b -j$(nproc) && cp ../*.deb . displayName: "Compile sonic swss" - publish: $(System.DefaultWorkingDirectory)/ artifact: sonic-swss.armhf