合并发布者-文件操作=“复制”实际上在CruiseControl.Net中? [英] Merge Publisher - what does <file action="Copy"> actually do in CruiseControl.Net?

查看:86
本文介绍了合并发布者-文件操作=“复制”实际上在CruiseControl.Net中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从CruiseControl继承了一个运行TestComplete脚本的项目。
对于每个脚本,CCnet.Config中都有一个条目,并且每个条目以以下结尾:

I inherited a project that runs TestComplete scripts from CruiseControl. For each Script there is an entry in CCnet.Config and each entry ends with the following:

<publishers>
  <merge>
   <files>
     <file action="Copy">
        C:\Test\Log\TestCompleteResult\TestWebLog.mht
     </file>
   </files>
  </merge>
 <xmllogger />
 <statistics />

我假设复制了TestComplete登录到该位置。但是,如果我更改位置(即更改为C:\test\log2\TestWebLog.mht),则文件仍以C:\Test\Log\TestCompleteResult结尾。我尝试关闭CruiseControl,重新启动系统等,该文件仍然位于同一位置。

Which I assumed copies the TestComplete log to that location. However, if I change the location (i.e. to C:\test\log2\TestWebLog.mht), the file still ends up in C:\Test\Log\TestCompleteResult. I have tried shutting down CruiseControl, rebooting the system etc. and the file still ends up in the same location.

我已删除目录和文件,检查了时间戳记并查看了日志文件。所有这些都表明这是由TestComplete脚本的最新运行创建的新文件,但始终将其放置在同一位置:C:\Test\Log\TestCompleteResult\TestWebLog.mht。

I have deleted the directory and file, checked the time stamp and looked at the log file. All indicate that it is a new file created by the most recent run of the TestComplete script, but it always gets put in the same location: C:\Test\Log\TestCompleteResult\TestWebLog.mht.

还有其他地方可以定义此路径吗?

Is there some place else this path could be defined?

推荐答案

从< a href = http://www.cruisecontrolnet.org/projects/ccnet/wiki/File_Merge_Task rel = nofollow> CruiseControl.NET Wiki :

复制:不是将数据合并到构建日志中,而是将指定文件复制到项目的artefacts文件夹下的 build文件夹中

Copy: instead of merging the data into the build log, it will copy the specified files into a "build" folder under the artefacts folder for the project

在ccnet.config中,您可以为要放置构建结果的每个项目指定一个 artifact 目录。

In ccnet.config you can specify an artifact directory for each project into which the build results will be placed.

<project name="Project">
<artifactDirectory>C:\ProjectDir\artifacts</artifactDirectory>
...
</project>

默认的合并操作是将指定文件与在工件目录中找到的result.xml合并。
复制合并操作会将指定的文件复制到 artifactdirectory\Build 文件夹中。

The default merge action is to combine the specified file with the result.xml found in the artifact directory. The "Copy" merge action copies the specified file into the artifactdirectory\Build folder.

您在< file> ...< / file> 标签是将被复制到工件文件夹的 source 文件。

The file you specify in the <file>...</file> tags is the source file that will be copied to the artifact folder.

这篇关于合并发布者-文件操作=“复制”实际上在CruiseControl.Net中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆