Ok, after much searching I discovered that the download from the http://ccnetconditional.codeplex.com web site is compiled with the 1.6 libraries instead of the 1.5 libraries. I opened the project and removed/added the correct references to cc 1.5 (cruisecontrol.core, cruisecontrol.remote, and netreflector), recompiled and it now works like a charm. Turns out the code below is correct after all.
This should be posted somewhere. On Sep 2, 5:41 pm, JSD <[email protected]> wrote: > I have a task block that I want to execute if the build status is > success, see below. If I load this into the server, it crashes with > an error: Unable to instantiate CruiseControl projects from > configuration document. Configuration document is likely missing Xml > nodes required for properly populating CruiseControl configuration. > > I've read other posts on this issue, but I can't seem to figure out > where mine is going wrong. > > Unable to load array item 'conditional' - Cannot convert from type > System.String > to ThoughtWorks.CruiseControl.Core.ITask for object with value: > "nantE:\Builds\ > Software_Encoder\MarvinSCM.buildPostBuildCheckin and update TT > issuesnantE:\Buil > ds\Software_Encoder\MarvinSCM.buildUncheckoutUndo checkouts" > Xml: <conditional><conditions><statusCondition value="Success" /></ > conditions><t > asks><nant><executable>nant</executable><baseDirectory>E:\Builds > \Software_Encode > r\Marvin</baseDirectory><buildFile>SCM.build</ > buildFile><targetList><target>Post > Build</target></targetList><description>Checkin and update TT issues</ > descriptio > n></nant></tasks><elseTasks><nant><executable>nant</ > executable><baseDirectory>E: > \Builds\Software_Encoder\Marvin</baseDirectory><buildFile>SCM.build</ > buildFile>< > targetList><target>Uncheckout</target></targetList><description>Undo > checkouts</ > description></nant></elseTasks></conditional> > > Below is my ccnet.config > > <tasks> > <nant> > <executable>nant</executable> > > <baseDirectory>E:\Builds\Software_Encoder\Marvin</baseDirectory> > <buildFile>GPSE_noSCM.build</buildFile> > > <buildTimeoutSeconds>3600</buildTimeoutSeconds> > <description>Nant build of GPSE</description> > </nant> > <conditional> > <conditions> > <statusCondition value="Success"/> > </conditions> > <tasks> > <nant> > <executable>nant</executable> > > <baseDirectory>E:\Builds\Software_Encoder\Marvin</baseDirectory> > > <buildFile>SCM.build</buildFile> > <targetList> > > <target>PostBuild</target> > </targetList> > <description>Checkin and > update TT issues</description> > </nant> > </tasks> > <elseTasks> > <nant> > <executable>nant</executable> > > <baseDirectory>E:\Builds\Software_Encoder\Marvin</baseDirectory> > > <buildFile>SCM.build</buildFile> > <targetList> > > <target>Uncheckout</target> > </targetList> > <description>Undo > checkouts</description> > </nant> > </elseTasks> > </conditional> > </tasks>
