[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
|
||||
displayName: 'Dump Environment'
|
||||
|
||||
# Uses the powershell cmdlet to remove known directories that are not needed and use space.
|
||||
# we might hit issue https://github.com/PowerShell/PowerShell/issues/9246, so we always do exit 0
|
||||
- pwsh: |
|
||||
Import-Module $Env:SYSTEM_DEFAULTWORKINGDIRECTORY/xamarin-macios/tools/devops/automation/scripts/System.psm1
|
||||
Clear-HD
|
||||
exit 0
|
||||
displayName: 'Disk cleanup'
|
||||
timeoutInMinutes: 5
|
||||
- bash: $(System.DefaultWorkingDirectory)/xamarin-macios/tools/devops/automation/scripts/bash/clean-bot.sh
|
||||
displayName: 'Clean bot'
|
||||
env:
|
||||
BUILD_REVISION: 'jenkins'
|
||||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче