CruiseControl.net 配置问题

发布于 2024-08-29 03:43:52 字数 354 浏览 11 评论 0原文

我开始使用 ccnet 来构建我的项目。这对我来说是一个相当新的问题,所以我遇到了一些问题。

第一件事:为什么 ccnet 将我的项目目录复制到另一个目录(ccnet 创建与 ccnet.config 文件中包含的项目名称相同的新文件夹,并将我的项目复制到它们的目录)

第二件事:仪表板页面无法显示最近的报告构建(当我单击最近构建中的任何项目时,我会得到页面:“找不到该页面”我认为该页面无法将文件与日志链接。但我不知道如何链接它。 我创建了一个发布者:

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

有人可以帮助我吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

病毒体 2024-09-05 03:43:52

只是一个问题,批处理文件“C:\Branches\Scripts\Build Release.bat”是否执行该步骤?

因为我在 CruiseControl 配置中看不到任何明显的内容,无法将文件复制到“c:\Program Files\CruiseControl.NET\Sever\TestProject”...

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"...

梦在深巷 2024-09-05 03:43:52

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

In build Release script I just call devenv to compile my project

毁梦 2024-09-05 03:43:52

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

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

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

[编辑以响应发布的配置文件]

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

根据您的配置文件并假设您有开箱即用的安装,您的 元素应如下所示:

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

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

Not sure I fully understand the 'first thing' if you can elaborate on it I'll try to help.
On our system it performs an SVN checkout of the code to a specified location and builds it there. Even though our CCNet installation is on the same box as the SVN repository it still needs somewhere separate to build the project.

On the 'second thing' it sounds like you have not set the <webURL> element properly - not a major problem. If you can post your config file that may help (with both issues).

Our CCNet installation pretty much worked out of the box but it is pretty fussy about it's config files. Have you made any changes to the dashboard.config file or is it as installed?

[Edit in response to posted config file]

I can't see anything in this config that will cause CCNet to copy the project to c:\Program Files\CruiseControl.NET\Server\TestProject. It could be something to do with the way you are calling devenv in your batch file - do you specify any paths in there?

Based on your config file and assuming you have an out of the box installation, your <webURL> element should read something like this:

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

On top of all that I would highly recommend that you drop the use of .bat files and devenv.exe for building your projects. Although this is the way I started with CCNet I quickly found that using NAnt and MSBuild well worth the effort.

禾厶谷欠 2024-09-05 03:43:52

我试着解释一下。
我的存储库本地副本位于路径:“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>

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

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

I Try explain it more.
I have my local copy of repository on the path: "c:\Branches\trunk"

here is my config file:

<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>

I didn't change anything in dashboard.config File.
cnet copy all folder c:\Branches\Trunk
to new folder c:\Program Files\CruiseControl.NET\Sever\TestProject

First problem was cause because in previous version of config file i use filesystem as sourcecontrol. Right now this problem don't occur.
Second problem is not resolved, But I have one Idea, Does any configuration files should be placed in virtual directory?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文