Skip to content

Commit 64ca9bb

Browse files
authored
[ci]: only copy artifacts when build is successful (#1590)
1 parent 17d0dae commit 64ca9bb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

azure-pipelines.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ jobs:
6363
submodules: true
6464
- script: |
6565
./autogen.sh
66-
dpkg-buildpackage -us -uc -b -j$(nproc)
67-
cp ../*.deb .
66+
dpkg-buildpackage -us -uc -b -j$(nproc) && cp ../*.deb .
6867
displayName: "Compile sonic swss"
6968
- publish: $(System.DefaultWorkingDirectory)/
7069
artifact: sonic-swss
@@ -124,8 +123,7 @@ jobs:
124123
submodules: true
125124
- script: |
126125
./autogen.sh
127-
dpkg-buildpackage -us -uc -b -j$(nproc)
128-
cp ../*.deb .
126+
dpkg-buildpackage -us -uc -b -j$(nproc) && cp ../*.deb .
129127
displayName: "Compile sonic swss"
130128
- publish: $(System.DefaultWorkingDirectory)/
131129
artifact: sonic-swss.arm64
@@ -185,8 +183,7 @@ jobs:
185183
submodules: true
186184
- script: |
187185
./autogen.sh
188-
dpkg-buildpackage -us -uc -b -j$(nproc)
189-
cp ../*.deb .
186+
dpkg-buildpackage -us -uc -b -j$(nproc) && cp ../*.deb .
190187
displayName: "Compile sonic swss"
191188
- publish: $(System.DefaultWorkingDirectory)/
192189
artifact: sonic-swss.armhf

0 commit comments

Comments
 (0)