Skip to content

Commit fcdd8fb

Browse files
Merged PR 6579534: [ci] Fix download public image pipeline issue about dist change.
1 parent 52f8d94 commit fcdd8fb

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.pipelines/DownloadPublicImage.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ parameters:
77
- name: 'platforms'
88
type: object
99
default:
10-
- broadcom: sonic-aboot-broadcom.swi.log sonic-aboot-broadcom.swi sonic-broadcom.bin docker-syncd-brcm-rpc.gz debs/buster/python-saithrift_0.9.4_amd64.deb sonic-aboot-broadcom-dnx.swi
10+
- broadcom: sonic-aboot-broadcom.swi.log sonic-aboot-broadcom.swi sonic-broadcom.bin docker-syncd-brcm-rpc.gz debs/bullseye/python-saithrift_0.9.4_amd64.deb sonic-aboot-broadcom-dnx.swi
1111
- mellanox: sonic-mellanox.bin.log sonic-mellanox.bin
1212
- marvell-armhf: sonic-marvell-armhf.bin.log sonic-marvell-armhf.bin
1313
- name: 'branch'
@@ -23,7 +23,6 @@ steps:
2323
- ${{ each pair in platform }}:
2424
- task: SSH@0
2525
displayName: "========= ${{ pair.key }} ========="
26-
condition: always()
2726
inputs:
2827
sshEndpoint: 'acs-trusty8'
2928
runOptions: 'inline'
@@ -73,7 +72,6 @@ steps:
7372
mv ${{ pair.key }}/target/${target} ${{ pair.key }}/target/${filename}-${image_version}.${extension}
7473
done
7574
displayName: 'Download ${{ pair.key }} artifacts'
76-
condition: always()
7775
- script: |
7876
PORT=443
7977
SONIC_VERSION="$(date "+%Y%m%d").01"
@@ -86,9 +84,8 @@ steps:
8684
displayName: 'Push docker registry'
8785
env:
8886
REGISTRY_PASSWD: $(REGISTRY_PASSWD)
89-
condition: always()
9087
- task: CopyFilesOverSSH@0
91-
condition: ne(variables.SKIP, 'true')
88+
condition: and(ne(variables.SKIP, 'true'), succeeded())
9289
inputs:
9390
sshEndpoint: 'acs-trusty8'
9491
sourceFolder: '${{ pair.key }}/target/'
@@ -99,7 +96,7 @@ steps:
9996
targetFolder: '/data/installer/sonic/${{ pair.key }}/public/'
10097
readyTimeout: '20000'
10198
- task: SSH@0
102-
condition: ne(variables.SKIP, 'true')
99+
condition: and(ne(variables.SKIP, 'true'), succeeded())
103100
displayName: "Remove ${{ pair.key }} old image"
104101
inputs:
105102
sshEndpoint: 'acs-trusty8'
@@ -118,7 +115,7 @@ steps:
118115
extension="${target##*.}"
119116
# remove tail .*
120117
filename="${target%.*}"
121-
tc=$(expr $(ls -al ${filename}-*.${extension} | wc -l) - $(IMAGE_KEEP_NUM))
118+
tc=$(expr $(ls -al ${filename}-master*.${extension} | wc -l) - $(IMAGE_KEEP_NUM))
122119
if (( $tc > 0 ));then
123120
ls -alt ${filename}-*.${extension} | tail -n $tc | awk '{print$NF}' | xargs -i rm {}
124121
fi

0 commit comments

Comments
 (0)