@@ -7,7 +7,7 @@ parameters:
7
7
- name : ' platforms'
8
8
type : object
9
9
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
11
11
- mellanox : sonic-mellanox.bin.log sonic-mellanox.bin
12
12
- marvell-armhf : sonic-marvell-armhf.bin.log sonic-marvell-armhf.bin
13
13
- name : ' branch'
23
23
- ${{ each pair in platform }} :
24
24
- task : SSH@0
25
25
displayName : " ========= ${{ pair.key }} ========="
26
- condition : always()
27
26
inputs :
28
27
sshEndpoint : ' acs-trusty8'
29
28
runOptions : ' inline'
73
72
mv ${{ pair.key }}/target/${target} ${{ pair.key }}/target/${filename}-${image_version}.${extension}
74
73
done
75
74
displayName: 'Download ${{ pair.key }} artifacts'
76
- condition: always()
77
75
- script : |
78
76
PORT=443
79
77
SONIC_VERSION="$(date "+%Y%m%d").01"
86
84
displayName: 'Push docker registry'
87
85
env:
88
86
REGISTRY_PASSWD: $(REGISTRY_PASSWD)
89
- condition: always()
90
87
- task : CopyFilesOverSSH@0
91
- condition : ne(variables.SKIP, 'true')
88
+ condition : and( ne(variables.SKIP, 'true'), succeeded() )
92
89
inputs :
93
90
sshEndpoint : ' acs-trusty8'
94
91
sourceFolder : ' ${{ pair.key }}/target/'
99
96
targetFolder : ' /data/installer/sonic/${{ pair.key }}/public/'
100
97
readyTimeout : ' 20000'
101
98
- task : SSH@0
102
- condition : ne(variables.SKIP, 'true')
99
+ condition : and( ne(variables.SKIP, 'true'), succeeded() )
103
100
displayName : " Remove ${{ pair.key }} old image"
104
101
inputs :
105
102
sshEndpoint : ' acs-trusty8'
@@ -118,7 +115,7 @@ steps:
118
115
extension="${target##*.}"
119
116
# remove tail .*
120
117
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))
122
119
if (( $tc > 0 ));then
123
120
ls -alt ${filename}-*.${extension} | tail -n $tc | awk '{print$NF}' | xargs -i rm {}
124
121
fi
0 commit comments