Reputation: 2003
we have a solution with a mvc5 application, and i am trying to use thoughtworks go continuous delivery system to checkout, compile and use webdeploy to publish the web site.
at the moment i have an msbuild task in a job to do all of this, however the nuget package restore part fails.
i do not want to commit the actual packages to our source control, i want nuget to do its job and go to do its.
the error log in go shows the following:
C:\Program Files (x86)\Go Agent\pipelines\Target-Web.nuget\NuGet.targets(100,9): error MSB3073: The command ""...nuget\NuGet.exe" install "C:\Program Files (x86)\Go Agent\pipelines\Target-Web\MyProject.Web\packages.config" -source "" -NonInteractive -RequireConsent -solutionDir "..\ "" exited with code 1. [C:\Program Files (x86)\Go Agent\pipelines\Target-Web\MyProject.Web\MyProject.Web.csproj]
when i log on to the go server and the go agent as the account that go runs as i can run the msbuild command from the given location as expected.
this is the task that go is trying to run
[go] Start to execute task: <exec command="%Windir%\Microsoft.NET\Framework64\v4.0.30319\MsBuild.exe" >
<arg>MyProject\MyProject.csproj</arg>
<arg>/p:DeployOnBuild=true</arg>
<arg>/p:PublishProfile=UAT1</arg>
<arg>/m</arg>
</exec>
Upvotes: 0
Views: 542
Reputation: 2003
i finally figured that the go agent was running a local service and this account didn't seem to have relevant privileges. once i changed the account to run with more elevated rights the issue was resolved.
Upvotes: 0