Skip to content

Commit

Permalink
Merge pull request #12703 from sharifelgamal/windows-check
Browse files Browse the repository at this point in the history
disable windows cleanup cron for now
  • Loading branch information
sharifelgamal authored Oct 19, 2021
2 parents 0319d4d + 55f5c2f commit c1ee410
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 30 deletions.
5 changes: 5 additions & 0 deletions hack/jenkins/windows_cleanup_and_reboot.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@ Get-VM | Where-Object {$_.Name -ne "DockerDesktopVM"} | Foreach {
Stop-VM $_.Name -Force
Remove-VM $_.Name -Force
}
VBoxManage list vms | Foreach {
$m = $_.Substring(1, $_.LastIndexOf('"')-1)
VBoxManage controlvm $m poweroff
VBoxManage unregistervm $m --delete
}
shutdown /r
30 changes: 0 additions & 30 deletions hack/jenkins/windows_cleanup_and_reboot_virtualbox.ps1

This file was deleted.

1 change: 1 addition & 0 deletions hack/jenkins/windows_cleanup_cron.ps1
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Schtasks /create /tn cleanup_reboot /sc MINUTE /mo 30 /tr "Powershell C:\jenkins\windows_cleanup_and_reboot.ps1" /f
Disable-ScheduledTask -TaskName cleanup_reboot

0 comments on commit c1ee410

Please sign in to comment.