Hi,
I have just configured my first Go setup, so I might be missing something entirely obvious, but after reading plenty of documentation and blogs I'm struggling to get this simple task to work.
I am trying to build a sole .NET project that is part of a much bigger solution, this is my current configuration for the job itself
<job name="build">
<tasks>
<exec command="D:\GoBinaries\nuget.exe">
<arg>restore packages.config</arg>
<arg>-PackagesDirectory ..\packages</arg>
<runif status="passed" />
</exec>
<exec command="MsBuild">
<arg>DataContracts.csproj</arg>
<arg>/t:Clean,Build</arg>
<arg>/p:Configuration=Debug</arg>
<runif status="passed" />
</exec>
</tasks>
</job>
The first task is meant to restore any missing nuget packages; the second builds the project.
Here's the console output, indicating that the "restore packages.config" command is not recognised.
[go] Start to execute task: <exec command="D:\GoBinaries\nuget.exe" >
<arg>restore packages.config</arg>
<arg>-PackagesDirectory ..\packages</arg>
</exec>.
[...]
[go] setting environment variable 'GO_TO_REVISION' to value '7259'
[go] setting environment variable 'GO_FROM_REVISION' to value '7259'
Unknown command: 'restore packages.config'
If I open the Go Agent directory where the files are getting pulled from version control, I have no issues at all running the commands manually from a DOS prompt.
Any ideas on how could I make Go interact with the nuget executable?
Thanks very much,
Jaume
ps: I have seen this article http://support.thoughtworks.com/entries/22507888-How-to-Use-NuGet-With-Go
but if I understand correctly, Mark is suggesting to put the nuget.exe binary under version control.
Which is something that I'd rather not do, as that would bind the binary to every project and it would make the upgrade of the nuget executable fairly involved.
--
You received this message because you are subscribed to a topic in the Google Groups "go-cd" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/go-cd/5-1pP8cEsQk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to go-cd+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The one remaining task that still involves some manually processing is updating SQL Server.We have a pipeline for the DB projects themselves, and nightly deployments to a DEV server.However, I still haven't had the chance to tackle the issue of doing incremental SQL upgrades. i.e. udpating the schema without losing any existing data.Is that something that you have done at your end? Care to share any tips or gotchas that you might have found?