Similar to Using CruiseControl.NET and MSBuild to publish a website
I'm encountering a situation where the MSBuild task in the ccnet.config does appear to work, but at the very end the process terminates with
standard-output stream closed -- null received in event
standard-error stream closed -- null received in event
process exited event received
When run from the command line, all appears well.
I've looked in all the logfiles I can think of, but I am stumped, I've dumped a lot of time into this. Please help!
UPDATED 11/13: As requested here is excerpt from CCNET.CONFIG
<msbuild>
<executable>$(msBuildExe)</executable>
<projectFile>"src\Solutions\Apprentice - Core Tests - VS11.sln"</projectFile>
<buildArgs>/noconsolelogger /p:Configuration="$(msbuildConfig)" /v:diag</buildArgs>
<logger>$(ccnet)\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
<environment>
<!-- allow NuGet to auto restore packages -->
<variable>
<name>EnableNuGetPackageRestore</name>
<value>true</value>
</variable>
</environment>
</msbuild>
With
<cb:define msBuildExe="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe" />
<cb:define msbuildConfig="Debug - No MSEL" />
At the top, amongst others
In the answer that you linked, do you notice the timeout in the msbuild block? I bet yours is either using the default timeout or is not high enough. I would suggest upping it or adding a high value to your msbuild block.
The errors you mention are pretty similar to a process timing out using the process class in c#.
<timeout>900</timeout>
According to http://www.cruisecontrolnet.org/projects/ccnet/wiki/MsBuild_Task the default timeout is 600 seconds or 10 minutes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With