disable the cleanup cron for now

pull/12703/head
Sharif Elgamal 2021-10-18 13:51:41 -07:00
parent 88547d8ca3
commit 55f5c2fab7
4 changed files with 3 additions and 6 deletions

View File

@ -3,10 +3,6 @@ function Jenkins {
if ($?) {
return $TRUE
}
$common = Get-WMIObject -Class Win32_Process -Filter "Name='PowerShell.EXE'" | Where {$_.CommandLine -Like "*common.ps1*"}
if ($common -ne $NULL) {
return $TRUE
}
return $FALSE
}

View File

@ -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

View File

@ -21,4 +21,4 @@ $timeout="180m"
$env:JOB_NAME="Docker_Windows"
$env:EXTERNAL="yes"
. Powershell -File ./out/common.ps1
. ./out/common.ps1

View File

@ -21,4 +21,4 @@ $timeout="180m"
$env:JOB_NAME="Hyper-V_Windows"
$env:EXTERNAL="yes"
. Powershell -File ./out/common.ps1
. ./out/common.ps1