Gitlab runner does not detect build is complete if using Powershell
It looks like the gitlab-runner for windows is not detecting when the build is complete if its being run from 'powershell'. However it works if using the 'cmd' shell.
We upgraded from Gitlab v11 to v13.0.5. Now our builds on a dedicated Windows runner usually timeout even though they finish correctly on the runner. The build completes, and the build console shows the build test success message however the runner keeps going until it hits the timeout period and then the server indicates the build failed.
It happens for about 3 our of 4 of the builds and sometimes a retry will work. We also upgraded the gitlab-runner to the current version for Windows (amd64) and both it and the older runner have the same issue.
As part of the v11 to v13 upgrade, we switched to PowerShell for the gitlab-runner in the config.toml. We switched it back to 'cmd' and the build now always works.