问题可能是由于代理环境未正确配置或缺少所需的软件依赖项引起的。解决方法包括确保构建代理已经正确安装并激活,并且其依赖于所需的软件。在构建代理机器上,安装构建代理并运行以下powershell命令以安装依赖:
Invoke-WebRequest -Uri "https://download.microsoft.com/download/B/F/1/BF1D0920-E002-4D68-9E5D-975C3C9F1B61/NDP45-KB2750147-x86-x64-AllOS-ENU.exe" -OutFile "C:\temp\NDP45-KB2750147-x86-x64-AllOS-ENU.exe"
Start-Process -FilePath "C:\temp\NDP45-KB2750147-x86-x64-AllOS-ENU.exe" -ArgumentList "/q" -Wait
Invoke-WebRequest -Uri "https://nodejs.org/dist/v14.15.5/node-v14.15.5-x64.msi" -OutFile "C:\temp\node-v14.15.5-x64.msi"
Start-Process -FilePath "msiexec.exe" -ArgumentList "/i C:\temp\node-v14.15.5-x64.msi /qn" -Wait
Invoke-WebRequest -Uri "https://github.com/git-for-windows/git/releases/download/v2.28.0.windows.1/Git-2.28.0-64-bit.exe" -OutFile "C:\temp\Git-2.28.0-64-bit.exe"
Start-Process -FilePath "C:\temp\Git-2.28.0-64-bit.exe" -ArgumentList "/SILENT" -Wait
运行上述脚本,确保构建代理及其依赖项都已经正确安装并进行激活。