1

I started using ccnet to build my project. This is quite new issue for me so I have some problems.

First thing: Why does ccnet copy directory with my project to another directory (ccnet creates new folder named the same as project name included in ccnet.config file and copies to them directory with my project)

Second thing: Dashboard page cannot show reports for recent build (When I click on any item in recent build then I get page: "The page Cannot be found" I suppose that page cannot link files with logs. but I don't know how to link it. I create one publisher:

<publishers>
<xmllogger logDir="c:\Branches" />

Can anyone help me?

4

4 回答 4

1

Just a question, does the batch file "C:\Branches\Scripts\Build Release.bat" perform that step?

Because I can't see anything obvious within the CruiseControl config to copy the files into "c:\Program Files\CruiseControl.NET\Sever\TestProject"...

于 2010-04-19T08:12:24.747 回答
0

不确定我是否完全理解“第一件事”,如果您能详细说明,我会尽力提供帮助。在我们的系统上,它执行代码的 SVN 检出到指定位置并在那里构建它。即使我们的 CCNet 安装与 SVN 存储库在同一个盒子上,它仍然需要单独的地方来构建项目。

在“第二件事”上,听起来您没有<webURL>正确设置元素-这不是主要问题。如果您可以发布可能有帮助的配置文件(这两个问题)。

我们的 CCNet 安装几乎是开箱即用的,但它的配置文件非常繁琐。您是否对dashboard.config 文件进行了任何更改或者是否已安装?

[根据发布的配置文件进行编辑]

我在此配置中看不到任何会导致 CCNet 将项目复制到 c:\Program Files\CruiseControl.NET\Server\TestProject 的内容。这可能与您在批处理文件中调用 devenv 的方式有关 - 您是否在其中指定了任何路径?

根据您的配置文件并假设您有一个开箱即用的安装,您的<webURL>元素应该是这样的:

<webURL>http://localhost/ccnet/server/local/testProject/ViewProjectReport.aspx</webURL>

最重要的是,我强烈建议您放弃使用 .bat 文件和 devenv.exe 来构建您的项目。虽然这是我开始使用 CCNet 的方式,但我很快发现使用 NAnt 和 MSBuild 非常值得付出努力。

于 2010-04-17T15:24:32.987 回答
0

我试着解释一下。我在路径上有我的本地存储库副本:“c:\Branches\trunk”

这是我的配置文件:

<cruiseControl>
<project name="testProject">
  <webURL>http://localhost/ccnet/</webURL>
  <triggers>
    <intervalTrigger name="interval trigger" seconds="600" initialSeconds="30" />
  </triggers>
  <sourcecontrol type="svn" autoGetSource="true">
    <trunkUrl>http://********/svn/general/provider/prototype/Trunk</trunkUrl>
    <workingDirectory>C:\Branches\Trunk</workingDirectory>
    <password>***********</password>
    <username>*************</username>
  </sourcecontrol>
  <tasks>
    <exec>
      <description>Compile program</description>
      <baseDirectory>C:\Branches\Trunk\</baseDirectory>
      <buildTimeoutSeconds>9000</buildTimeoutSeconds>
      <executable>C:\Branches\Scripts\Build Release.bat</executable>
    </exec>
  </tasks>
  <publishers>
    <xmllogger logDir="C:\Branches\Trunk\Logs" />
  </publishers>
  <state type="state" directory="C:\Branches\Trunk\Logs"></state>
</project>
</cruisecontrol>

我没有更改 dashboard.config 文件中的任何内容。cnet 将所有文件夹 c:\Branches\Trunk 复制到新文件夹 c:\Program Files\CruiseControl.NET\Sever\TestProject

第一个问题是因为在以前版本的配置文件中我使用文件系统作为源控制。目前不会出现这个问题。第二个问题没有解决,但是我有一个想法,是否应该将任何配置文件放在虚拟目录中?

于 2010-04-19T07:42:11.460 回答
0

在构建发布脚本中,我只是调用 devenv 来编译我的项目

于 2010-04-19T08:54:05.747 回答