This commit is contained in:
parent
ca85c6be5e
commit
ab91b607f2
@ -6,6 +6,14 @@
|
||||
trigger: none
|
||||
pr: none
|
||||
|
||||
resources:
|
||||
repositories:
|
||||
- repository: buildimage
|
||||
type: github
|
||||
name: Azure/sonic-buildimage
|
||||
ref: master
|
||||
endpoint: build
|
||||
|
||||
schedules:
|
||||
- cron: "0 0 * * *"
|
||||
displayName: Daily Build
|
||||
@ -41,17 +49,7 @@ stages:
|
||||
jobFilters: ${{ parameters.jobFilters }}
|
||||
buildOptions: '${{ variables.VERSION_CONTROL_OPTIONS }} SONIC_BUILD_JOBS=$(nproc) ENABLE_IMAGE_SIGNATURE=y'
|
||||
preSteps:
|
||||
- script: |
|
||||
containers=$(docker container ls | grep "sonic-slave" | awk '{ print $1 }')
|
||||
if [ ! -z "$containers" ]; then
|
||||
docker container kill $containers || true
|
||||
sleep 5
|
||||
fi
|
||||
images=$(docker images 'sonic-slave-*' -a -q)
|
||||
if [ ! -z "$images" ]; then
|
||||
docker rmi -f $images
|
||||
fi
|
||||
displayName: 'Cleanup sonic slave'
|
||||
- template: .azure-pipelines/template-clean-sonic-slave.yml@buildimage
|
||||
- stage: UpgradeVersions
|
||||
jobs:
|
||||
- job: UpgradeVersions
|
||||
|
Loading…
Reference in New Issue
Block a user