diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 540cd52e5..7309e1f42 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -210,4 +210,7 @@ windows_provision: # MAX_PATH - beide Schalter noetig (git-seitig + OS-Policy) - '& "C:\Program Files\Git\cmd\git.exe" config --system core.longpaths true' - Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name LongPathsEnabled -Value 1 -Type DWord - - Start-Process powershell -ArgumentList '-Command','Start-Sleep 10; Restart-Service gitlab-runner -Force' + # Dienst-Neustart als Scheduled Task: ueberlebt das Prozessbaum-Cleanup des Runners + # beim Job-Ende (der fruehere Start-Process-Trick wurde dabei gekillt und liess den + # Dienst gestoppt zurueck - Vorfall 2026-07-31, siehe ThreadNet-Web#5). + - schtasks /create /f /tn RunnerRestart /ru SYSTEM /sc once /st ((Get-Date).AddMinutes(1).ToString('HH:mm')) /tr "powershell -Command Restart-Service gitlab-runner -Force"