[CI][VSTS] Use the same script as other jobs to clean the macOS bots. (#10629)

This commit is contained in:
Manuel de la Pena 2021-02-12 06:34:46 -05:00 коммит произвёл GitHub
Родитель 4b6246616c
Коммит 9c81be82c6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 8 удалений

Просмотреть файл

@ -37,14 +37,10 @@ steps:
gci env: | format-table -autosize -wrap gci env: | format-table -autosize -wrap
displayName: 'Dump Environment' displayName: 'Dump Environment'
# Uses the powershell cmdlet to remove known directories that are not needed and use space. - bash: $(System.DefaultWorkingDirectory)/xamarin-macios/tools/devops/automation/scripts/bash/clean-bot.sh
# we might hit issue https://github.com/PowerShell/PowerShell/issues/9246, so we always do exit 0 displayName: 'Clean bot'
- pwsh: | env:
Import-Module $Env:SYSTEM_DEFAULTWORKINGDIRECTORY/xamarin-macios/tools/devops/automation/scripts/System.psm1 BUILD_REVISION: 'jenkins'
Clear-HD
exit 0
displayName: 'Disk cleanup'
timeoutInMinutes: 5
continueOnError: true continueOnError: true
# Use a cmdlet to check if the space available in the devices root system is larger than 50 gb. If there is not # Use a cmdlet to check if the space available in the devices root system is larger than 50 gb. If there is not