[CI][VSTS] Use the same script as other jobs to clean the macOS bots. (#10629)
This commit is contained in:
Родитель
4b6246616c
Коммит
9c81be82c6
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче