Hi Tasks are executed one after the other, if task N failes, task N+1 does NOT get executed. publishers are always exeuted, if publisher N failes, publisher N+1 DOES get executed.
failure is determined from the exit codes, standard every non-0 is considered as error your config looks ok from first point of view :-) with kind regards Ruben Willems On 21 February 2012 19:29, Mark Pawelek <[email protected]> wrote: > In the following example, I run my build with rake/albacore, which > calls msbuild + nunit. > > msbuild produces two websites here: > > D:\Builds\MyProjects\Publish\Admin\ > D:\Builds\MyProjects\Publish\Client\ > > publish.bat just copies each of these to the actual websites, e.g. > [for the first website] > > xcopy D:\Builds\MyProjects\Publish\Client\*.* D:\Domains\MyProjects.com > \ /E /Q /R /K /Y > > Q1: if the first exec, build, task fails will it stop there and ignore > the 2nd, publish, task? > [Forgive the question but I am reluctant to break the source in the > repo just to test this.] > > Q2: Given that the ccnet.config actually works and the websites are > build and published, is this (below) OK? > > <cruisecontrol> > <!-- http://blog.jpboodhoo.com/SampleCCNetConfigurationSection.aspx > --> > <project name="MyProjects"> > <workingDirectory>D:\Builds\MyProjects\Source</workingDirectory> > <artifactDirectory>D:\Builds\MyProjects\Source\Assemblies</ > artifactDirectory> > <webURL>http://ftweb41-wviw-d/ccnet/</webURL> > <modificationDelaySeconds>10</modificationDelaySeconds> > <triggers> > <intervalTrigger seconds="60" /> > </triggers> > <sourcecontrol type="svn"> > <trunkUrl>svn://anthill.svc.ft.com/repo/ASPDotNet/MyProjects/ > branches/ConsultantDirectorySprint<http://anthill.svc.ft.com/repo/ASPDotNet/MyProjects/%0Abranches/ConsultantDirectorySprint> > </trunkUrl> > <workingDirectory>D:\Builds\MyProjects\Source</workingDirectory> > </sourcecontrol> > <tasks> > <exec> > <executable>D:\Builds\build.bat</executable> > <buildTimeoutSeconds>300</buildTimeoutSeconds> > </exec> > <exec> > <executable>D:\Builds\publish.bat</executable> > <buildTimeoutSeconds>30</buildTimeoutSeconds> > </exec> > </tasks> > <publishers> > <merge> > <files> > <file>D:\Builds\MyProjects\Reports\Test-Result.xml</file> > </files> > </merge> > <xmllogger /> > </publishers> > </project> > </cruisecontrol> >
