0
我在TeamCity的一个工作一个工作(使用的NuGet)配置代理服务器设置这是使用的MSBuild:如何TeamCity的
MSBuild
Build file: build.xml
Targets: Package
我知道这是可能为整个TeamCity的服务器配置代理服务器设置,但我只想在此作业内配置代理设置。所以只有这个工作可以使用它们。
这份工作是使用NuGet从互联网上获取软件包。哪些需要通过代理。
我有一个第一buildstep在CMD
tools\Nuget\nuget.exe config -set http_proxy=http://xxx:8080 -ConfigFile .nuget\Nuget.config
tools\Nuget\nuget.exe config -set https_proxy=http:xxx:8080 -ConfigFile .nuget\Nuget.config
tools\Nuget\nuget.exe config -set http_proxy.user=xxx -ConfigFile .nuget\Nuget.config
tools\Nuget\nuget.exe config -set https_proxy.user=xxx -ConfigFile .nuget\Nuget.config
tools\Nuget\nuget.exe config -set http_proxy.password=xxx -ConfigFile .nuget\Nuget.config
tools\Nuget\nuget.exe config -set https_proxy.password=xxx -ConfigFile .nuget\Nuget.config
的配置被写入NuGet.Config
。 SLN指向这个配置。但我仍得到了以下错误:
[Exec] EXEC (502) Bad Gateway.
Exec] E:\TeamCity\buildAgent\xx\build.xml(26, 5): error MSB3073: The command "tools\Nuget\nuget.exe restore myprojectname.sln"