Could not find Log Publisher for project in CCNET

I recently started a project, and I'm currently trying to configure the ccnet.config file.

The fact is, I cannot find out why CruiseControl cannot find the log file.

I think this is something simple, and I am doing something wrong, after 4 days I can find a solution.

I get the following error in CCNET:

 ThoughtWorks.CruiseControl.Remote.CommunicationsException: Request processing has failed on the remote server: Unable to find Log Publisher for project so can't find log file at ThoughtWorks.CruiseControl.Remote.CruiseServerClient.ValidateResponse(Response response) at ThoughtWorks.CruiseControl.Remote.CruiseServerClient.GetMostRecentBuildNames(String projectName, Int32 buildCount) at ThoughtWorks.CruiseControl.WebDashboard.ServerConnection.ServerAggregatingCruiseManagerWrapper.GetMostRecentBuildSpecifiers(IProjectSpecifier projectSpecifier, Int32 buildCount, String sessionToken) at ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport.ProjectReportProjectPlugin.Execute(ICruiseRequest cruiseRequest) at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.ServerCheckingProxyAction.Execute(ICruiseRequest cruiseRequest) at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.ProjectCheckingProxyAction.Execute(ICruiseRequest cruiseRequest) at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.CruiseActionProxyAction.Execute(IRequest request) at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.ExceptionCatchingActionProxy.Execute(IRequest request) String sessionToken) at ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport.ProjectReportProjectPlugin.Execute (ICruiseRequest cruiseRequest) at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise. ThoughtWorks.CruiseControl.Remote.CommunicationsException: Request processing has failed on the remote server: Unable to find Log Publisher for project so can't find log file at ThoughtWorks.CruiseControl.Remote.CruiseServerClient.ValidateResponse(Response response) at ThoughtWorks.CruiseControl.Remote.CruiseServerClient.GetMostRecentBuildNames(String projectName, Int32 buildCount) at ThoughtWorks.CruiseControl.WebDashboard.ServerConnection.ServerAggregatingCruiseManagerWrapper.GetMostRecentBuildSpecifiers(IProjectSpecifier projectSpecifier, Int32 buildCount, String sessionToken) at ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport.ProjectReportProjectPlugin.Execute(ICruiseRequest cruiseRequest) at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.ServerCheckingProxyAction.Execute(ICruiseRequest cruiseRequest) at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.ProjectCheckingProxyAction.Execute(ICruiseRequest cruiseRequest) at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.CruiseActionProxyAction.Execute(IRequest request) at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.ExceptionCatchingActionProxy.Execute(IRequest request) 

As I said, I think that something is wrong with my configuration file, it looks like this:

 <cruisecontrol> <project name="Myproject" queue="MyprojectQueue" queuePriority="1"> <webURL>http://localhost:80/ccnet/</webURL> <workingDirectory>C:\Projects\Myproject\trunk\Source\</workingDirectory> <artifactDirectory>C:\Projects\Myproject\trunk\Build\Log\</artifactDirectory> <sourcecontrol type="svn"> <trunkUrl>https://localhost/svn/Myproject.com/trunk</trunkUrl> <workingDirectory>E:\Repositories\Myproject.com</workingDirectory> <executable>C:\Program Files\VisualSVN Server\bin\svn.exe</executable> <username>myusername</username> <password>mypassword</password> <timeout>60000</timeout> </sourcecontrol> <tasks> <artifactcleanup cleanUpMethod="KeepLastXBuilds" cleanUpValue="5" /> <modificationWriter> <filename>mods.xml</filename> <path></path> </modificationWriter> </tasks> <triggers> <intervalTrigger name="SVN" seconds="10" buildCondition="IfModificationExists" /> </triggers> <labeller type="defaultlabeller"> <prefix>0.1.</prefix> <incrementOnFailure>true</incrementOnFailure> <labelFormat>000</labelFormat> </labeller> <state type="state" directory="State" /> <tasks> <nant> <executable>C:\Projects\Myproject\trunk\Binaries\NAnt\bin\nant.exe</executable> <baseDirectory>C:\Projects\Myproject\trunk\Binaries\NAnt\</baseDirectory> <buildArgs>-D:svn.executable="C:\Program Files\VisualSVN Server\bin\svn.exe"</buildArgs> <nologo>false</nologo> <buildFile>C:\Projects\Myproject\trunk\Source\Myproject.build</buildFile> <logger>SourceForge.NAnt.XmlLogger</logger> <buildTimeoutSeconds>1200</buildTimeoutSeconds> <targetList> <target>cruise</target> </targetList> </nant> </tasks> <publishers> <buildpublisher> <sourceDir>C:\Projects\Myproject\trunk\Build</sourceDir> <publishDir>C:\Projects\Myproject\trunk\Build</publishDir> <useLabelSubDirectory>true</useLabelSubDirectory> </buildpublisher> <merge> <files> <file>reports\devenv.log</file> <file>reports\*-nunit.xml</file> <file>reports\*-Coverage.xml</file> </files> </merge> </publishers> </project> </cruisecontrol> 

My .sln file is located in the Source folder.

I searched, but can't find anything about it. I also use nant and svn , as you can see.

+4
source share
1 answer

The publisher block is missing an XML log document. As stated in the documentation (... / CruiseControl.NET/webdashboard/doc/CCNET/Xml Log Publisher.html, online documents do not seem to be available right now), the toolbar needs to function properly. The publisher block contains it by default, so you only need to add it when you include the publisher block in your project.

Try changing the publisher block as follows:

 <publishers> <buildpublisher> <sourceDir>C:\Projects\Myproject\trunk\Build</sourceDir> <publishDir>C:\Projects\Myproject\trunk\Build</publishDir> <useLabelSubDirectory>true</useLabelSubDirectory> </buildpublisher> <merge> <files> <file>reports\devenv.log</file> <file>reports\*-nunit.xml</file> <file>reports\*-Coverage.xml</file> </files> </merge> <xmllogger /> </publishers> 
+4
source

Source: https://habr.com/ru/post/1339881/


All Articles