File tree 1 file changed +9
-11
lines changed
1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change 6
6
trigger : none
7
7
pr : none
8
8
9
+ resources :
10
+ repositories :
11
+ - repository : buildimage
12
+ type : github
13
+ name : Azure/sonic-buildimage
14
+ ref : master
15
+ endpoint : build
16
+
9
17
schedules :
10
18
- cron : " 0 0 * * *"
11
19
displayName : Daily Build
@@ -41,17 +49,7 @@ stages:
41
49
jobFilters : ${{ parameters.jobFilters }}
42
50
buildOptions : ' ${{ variables.VERSION_CONTROL_OPTIONS }} SONIC_BUILD_JOBS=$(nproc) ENABLE_IMAGE_SIGNATURE=y'
43
51
preSteps :
44
- - script : |
45
- containers=$(docker container ls | grep "sonic-slave" | awk '{ print $1 }')
46
- if [ ! -z "$containers" ]; then
47
- docker container kill $containers || true
48
- sleep 5
49
- fi
50
- images=$(docker images 'sonic-slave-*' -a -q)
51
- if [ ! -z "$images" ]; then
52
- docker rmi -f $images
53
- fi
54
- displayName: 'Cleanup sonic slave'
52
+ - template : .azure-pipelines/template-clean-sonic-slave.yml@buildimage
55
53
- stage : UpgradeVersions
56
54
jobs :
57
55
- job : UpgradeVersions
You can’t perform that action at this time.
0 commit comments