I have a powershell script that pulls the latest commit of a repository from github and then builds it using either msbuild (for .net) or webpack (for angular). The script itself is run using windows task scheduler, which checks a deployment queue periodically, and then runs a build. Everything was working fine, however it suddenly started hanging. We also started getting memory issues on our server. When I started looking at perfmon during this builds, i saw git credential manager for windows using massive and increasing amount of memory, taking the server to over 98% of usage
What's strange is that if I run the script directly on the server, it's fine - this only happens when I run it through the Windows Task Scheduler ( powershell -commmand "script.ps1"). Is there any way to find out why this is happening?
I am using:
git version 2.18.0.windows.1
git credential manager for windows 1.17.0
github windows clients 3.3.6.1
and I am running this on windows server 2012 r2