Following is my config file.

<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
  <project name="MyITRTestProject">
    <sourcecontrol type ="svn">
      <trunkUrl>svn://rom/me/TestReports/</trunkUrl>
      <workingDirectory>C:\source\TestProjects\ITRTests
\MyITRTestProject\</workingDirectory>
      <executable>c:\program files\subversion\bin\svn.exe</executable>
    </sourcecontrol>

    <!--<triggers>
      <scheduleTrigger time="13:35" buildCondition="ForceBuild"
name="Scheduled"/>
    </triggers>-->

      <triggers>
        <intervalTrigger name="continuous" seconds="60"/>
        <scheduleTrigger time="13:35" buildCondition="ForceBuild"
name="Scheduled"/>
      </triggers>

    <!--<triggers>
      <scheduleTrigger time="12:05" buildCondition="ForceBuild"
name="Scheduled">
        <weekDays>
          <weekDay>Thursday</weekDay>
        </weekDays>
      </scheduleTrigger>
    </triggers>-->

    <tasks>
      <!-- Use MsBuild to build the .Net solution-->
      <msbuild>
        <executable>C:\WINDOWS\Microsoft.NET\Framework
\v3.5\MSBuild.exe</executable>
        <workingDirectory>
          C:\source\TestProjects\ITRTests\MyITRTestProject\
        </workingDirectory>
        <projectFile>MyITRTestProject.sln</projectFile>
        <buildArgs>/noconsolelogger /p:Configuration=Debug /v:diag</
buildArgs>
        <targets>Build</targets>
        <timeout>9600</timeout>
        <logger>C:\Program Files\CruiseControl.NET\server
\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
      </msbuild>

      <!-- Use NUnit for unit testing-->
      <nunit path="C:\Program Files\NUnit 2.4.8\bin\nunit-console.exe"
timeout="6000">
        <assemblies>
          <!--Path to Visual Studio project executable-->
          <assembly>
            C:\source\TestProjects\ITRTests\MyITRTestProject
\MyITRTestProject\bin\Debug\MyITRTestProject.dll
          </assembly>
        </assemblies>
      </nunit>
    </tasks>

    <publishers>
      <!-- Email notification to users -->
      <email from="[email protected]" mailhost="rom" mailport="25"
includeDetails="TRUE"
             mailhostUsername="" mailhostPassword="" useSSL="FALSE">
        <users>
          <user name="BuildGuru" group="buildmaster"
address="[email protected]"/>
        </users>
        <groups>
          <group name="developers" notification="change"/>
          <group name="buildmaster" notification="always"/>
        </groups>
        <modifierNotificationTypes>
          <NotificationType>Failed</NotificationType>
          <NotificationType>Fixed</NotificationType>
        </modifierNotificationTypes>
      </email>
    </publishers>
  </project>

  <project name="MyITRBrowserTest">
    <sourcecontrol type ="svn">
      <trunkUrl>svn://rom/me/TestReports/</trunkUrl>
      <workingDirectory>C:\source\TestProjects\ITRTests
\MyITRBrowserTest\</workingDirectory>
      <executable>c:\program files\subversion\bin\svn.exe</executable>
    </sourcecontrol>

    <triggers>
      <intervalTrigger name="continuous" seconds="60"/>
      <scheduleTrigger time="15:00" buildCondition="ForceBuild"
name="Scheduled"/>
    </triggers>

    <tasks>
      <!-- Use MsBuild to build the .Net solution-->
      <msbuild>
        <executable>C:\WINDOWS\Microsoft.NET\Framework
\v3.5\MSBuild.exe</executable>
        <workingDirectory>
          C:\source\TestProjects\ITRTests\MyITRBrowserTest\
        </workingDirectory>
        <projectFile>MyITRBrowserTest.sln</projectFile>
        <buildArgs>/noconsolelogger /p:Configuration=Debug /v:diag</
buildArgs>
        <targets>Build</targets>
        <timeout>9600</timeout>
        <logger>C:\Program Files\CruiseControl.NET\server
\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
      </msbuild>

      <!-- Use NUnit for unit testing-->
      <nunit path="C:\Program Files\NUnit 2.4.8\bin\nunit-console.exe"
timeout="6000">
        <assemblies>
          <!--Path to Visual Studio project executable-->
          <assembly>
            C:\source\TestProjects\ITRTests\MyITRBrowserTest
\MyITRBrowserTest\bin\Debug\MyITRBrowserTest.dll
          </assembly>
        </assemblies>
      </nunit>
    </tasks>

    <publishers>
      <!-- Email notification to users -->
      <email from="[email protected]" mailhost="rom" mailport="25"
includeDetails="TRUE"
             mailhostUsername="" mailhostPassword="" useSSL="FALSE">
        <users>
          <user name="BuildGuru" group="buildmaster"
address="[email protected]"/>
                  </users>
        <groups>
          <group name="developers" notification="change"/>
          <group name="buildmaster" notification="always"/>
        </groups>
        <modifierNotificationTypes>
          <NotificationType>Failed</NotificationType>
          <NotificationType>Fixed</NotificationType>
        </modifierNotificationTypes>
      </email>
    </publishers>
  </project>
</cruisecontrol>

I am trying to run multiple projects but I am getting the following
exception on both projects
There was an exception trying to carry out your request. Details of
the Exception are:

Exception Message
Unexpected exception caught on server

Exception Full Details
ThoughtWorks.CruiseControl.Core.CruiseControlException: Unexpected
exception caught on server --->
ThoughtWorks.CruiseControl.Core.CruiseControlException: Unable to find
Log Publisher for project so can't find log file at
ThoughtWorks.CruiseControl.Core.Project.GetLogPublisher() at
ThoughtWorks.CruiseControl.Core.Project.GetLogDirectory() at
ThoughtWorks.CruiseControl.Core.Project.GetBuildNames() at
ThoughtWorks.CruiseControl.Core.Project.GetMostRecentBuildNames(Int32
buildCount) at
ThoughtWorks.CruiseControl.Core.CruiseServer.GetMostRecentBuildNames
(String projectName, Int32 buildCount) at
ThoughtWorks.CruiseControl.Core.CruiseManager.GetMostRecentBuildNames
(String projectName, Int32 buildCount) --- End of inner exception
stack trace --- Server stack trace: at
ThoughtWorks.CruiseControl.Core.CruiseManager.GetMostRecentBuildNames
(String projectName, Int32 buildCount) at
System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage
(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean
fExecuteInContext, Object[]& outArgs) at
System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage
(RuntimeMethodHandle md, Object[] args, Object server, Int32
methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage
(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) Exception
rethrown at [0]: at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg) at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type) at
ThoughtWorks.CruiseControl.Remote.ICruiseManager.GetMostRecentBuildNames
(String projectName, Int32 buildCount) at
ThoughtWorks.CruiseControl.WebDashboard.ServerConnection.ServerAggregatingCruiseManagerWrapper.GetMostRecentBuildSpecifiers
(IProjectSpecifier projectSpecifier, Int32 buildCount) 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)

Any help plz.
Kind Regards
Sam

Reply via email to