English 中文(简体)
巡航控制。Net服务器无法检测到在Starteam上进行的修改。
原标题:
  • 时间:2008-11-20 09:32:38
  •  标签:
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.

我正在使用Cruise Control .Net 1.4进行持续集成,并已安装在我的Windows 2000桌面上。我使用Nant 0.85进行构建。我的源代码控制在Borland Starteam 2005中。我已安装了.NET 2003框架,用于创建VB.Net Windows应用程序。我已经安装了CCNet,我认为我的CCNet.config文件已正确配置。

我面临的问题是,无论何时我改变任何一行代码并在Starteam中检查,修改都无法被CCNet服务器检测到,因此我无法根据修改触发构建。我必须依靠forcebuild来实现。但是每隔1分钟就使用forcebuild是不可接受的。我希望触发器基于修改。即一旦在Starteam上检测到更改,构建就应该自动进行。

我的CCNet.config文件如下:

Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate. Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.

<workingDirectory>C:Documents and Settingsuj0011637DesktopStarteamCruiseControlCCNet17Nov08</workingDirectory>
<webURL>http://172.24.120.37/ccnet</webURL>

<triggers>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<intervalTrigger name="continuous" seconds="120" buildCondition="ForceBuild" initialSeconds="120"/>Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate. 
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.</triggers>


<sourcecontrol type="starteam">
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate. <executable>C:Program FilesBorlandStarTeam Cross-Platform Client 2005 R2stcmd.exe</executable>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate. <project>DEL_CA_ROBOTSToolsCCNet17Nov08</project>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate. <username>600513221</username>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate. <password>car0b0ts</password>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate. <host>oscar.nat.bt.com</host>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate. <port>51234</port>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate. <autoGetSource>true</autoGetSource>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate. <timeout units="minutes">10</timeout>
</sourcecontrol>


<tasks>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<!-- Configure NAnt to compile the updated files -->c:
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<nant>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<executable>C:Documents and Settingsuj0011637DesktopCruise Control
ant
ant-0.85inNAnt.exe</executable>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<baseDirectory>C:Documents and Settingsuj0011637DesktopStarteamCruiseControlCCNet17Nov08</baseDirectory>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<nologo>false</nologo>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<buildFile>CCNet17Nov08.build</buildFile>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<logger>NAnt.Core.XmlLogger</logger>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<buildTimeoutSeconds>1200</buildTimeoutSeconds>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.</nant>
</tasks>


<!--Publishers will be done after the build has completed-->
 <publishers>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<xmllogger>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<logDir>C:Documents and Settingsuj0011637DesktopStarteamCruiseControlLog</logDir>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.</xmllogger>
 </publishers>

 <modificationDelaySeconds>10</modificationDelaySeconds>

Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.

我的构建文件是这个:

Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.

<target name="clean" description="Delete all previously compiled binaries.">
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<delete>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<fileset>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="**/bin/${project::get-name()}.dll" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="**/obj/**" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="**/*.user" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.</fileset>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.</delete>
</target>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.
<target name="rebuild" dependsontarget="clean, build ">
<zip zipfile="${project::get-name()}.zip"Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.verbose="true">
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<fileset>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="**/bin/*.dll" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="**/bin/*.exe" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.</fileset>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<fileset>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="*.aspx" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="*.css" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="*.config" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="*.js" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="*.asax" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="**.txt" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="**.vb" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="**.vbproj" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="**.user" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="**.sln" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="**.suo" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="**.resx" />

Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.</fileset>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<fileset prefix="SQL">
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<include name="*.sql" />
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.</fileset>
</zip>



</target>

<target name="unit_test" description="Run unit tests.">

Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate. <exec program="${nunit.dir}
unit-console.exe" commandline="bin/${prjname}.exe /xml=${prjname}.xml /nologo" />

Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate. </target>

Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<target name="build.Console">

Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<solution configuration="release" solutionfile="CCNet17Nov08.sln">

Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.</solution>

Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<property name="expected.output" value="bin/${prjname}.exe"/>
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.<fail unless="${file::exists(expected.output)}">Output file doesn t exist in ${expected.output}</fail>

</target>

请问有人可以帮我指导一下吗?

Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.
Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.Sorry, there is no text provided to be translated into Chinese. Please provide the text to translate.
问题回答

我在理解如何在运行IIS 7的Vista系统中安装和配置CruiseControl.Net,并使用星之团队作为源代码控制时遇到了困难。最终,我成功地设置了巡航控制器来工作。我将列出获得其工作的步骤。

步骤1:从这里获取CruiseControl.Net的副本。运行安装程序。作为安装的一部分,安装程序安装ccnet服务器和Web仪表板。

步骤2:安装完成后,要启动WebDashboard,请启动浏览器并输入http://localhost/ccnet(这是安装时的默认虚拟目录。这将指向您的构建服务器中的$InstallFolder/webdashboard文件夹。如果系统运行的是IIS5或6,则会看到CruiseControl.Net页面。在IIS7中,会出现500错误。如要解决此问题,请继续进行第3步;如果没有出现问题,就继续进行第4步。

第三步:以管理员身份运行以下命令。注意:此处ccnet是指向系统中Webdashboard物理位置的虚拟目录。

%SystemRoot%system32inetsrvappcmd 迁移配置 "默认网站 / ccnet"

一旦命令运行,只需重新启动iis并浏览到http://localhost/ccnet。它应该显示CruiseControl.Net仪表板。

步骤4:下一步是配置ccnet服务器。打开安装目录中“server”文件夹中的ccnet.config文件进行编辑。

项目部分:

定义项目部分。项目名称可以是任何标识符,不一定是您的项目名称。这将被CruiseControl.Net用于识别您的项目。

来源控制部分

在我的情况下,源代码控制是星之团队。需要设置各种属性,如登录凭据、项目等。

可执行文件:指向Star Team命令行工具中的“stcmd.exe”文件的路径。

项目:必须提取的在星际团队中定义的项目名称。

用户名,密码,主机,端口:Star Team服务器连接设置。

路径:从星之团队中提取文件的路径。例如:假设在星之团队中,项目根文件夹为“Test”。让项目和解决方案文件位于层次结构“TestTestProjectMyProject”中。要从此位置提取项目文件和解决方案,请指定项目为“Test”,路径为“TestProjectMyProject”。

覆盖文件夹工作目录:检出Star Team文件进行构建的路径。如果未指定,则将使用在星之团队中指定的原始工作文件夹提取文件。

自动获取源代码:将此设为“true”将允许CruiseControl.Net自动从星之团队检出文件。

文件历史正则表达式:我不得不更改日期正则表达式,因为我的区域设置配置为英语(印度),其中DateTime指定为DD-MM-YYYY HH:MI:SS(IST)。 我不得不更改此项,因为运行期间出现了格式无效:System.DateTime异常。

超时时间:指定 星之团队 检索的超时时间。

Following is the complete listing of the starteam configuration block. 星之团队

星之团队

MSBuild 部分

我使用了MsBuild来执行构建任务。以下部分解释了获取CruiseControl.Net的MsBuild设置涉及的属性。

可执行文件:系统中“MsBuild.exe”文件的路径。

Working Directory:Location of the files to be built. i.e., Location to where the 星之团队 extracted the files that need to be built.

项目文件:需要构建的.proj文件或.sln文件。

构建参数:指定传递给msbuild.exe的附加参数。

目标:要执行的操作。我想在解决方案上执行“清理”和“构建”。

超时:如果调用构建发生故障,则将显示错误消息的时间。

记录器:将用于生成构建结果的记录器装配的位置。

Following is the complete listing of the msbuild configuration block. MS构建

MS构建

触发器部分

触发器部分指定了项目构建必须被调用的时间和条件。在进行测试的初始设置期间,将buildCondition设置为“ForceBuild”(强制构建),一旦测试完成,将其更改为“IfModificationExists”(仅在检测到修改时才构建)。

Following is the complete listing of the 触发器 configuration block. 触发器

触发器

Step 5:Run the ccnet.exe application located in the ’server’ folder of the CruiseControl.Net install location. The code will be pulled from the 星之团队 to the location specified and the build should proceed. The results of the build are stored in the $InstallFolderProjectNameArtifactsms-build.xml file.

希望这可以帮助到您。

我并不感到惊讶,我曾使用过Star Team,我只能说,在那个代码库工具中,我需要习惯的烂摊子程度,仅次于整个编程职业生涯中的Source Safe。

如果我今天开始一个大项目,我可能会使用GIT,不要使用Star Team。

试试这个:

  • Change project setting in config file

<project>DEL_CA_ROBOTSToolsCCNet17Nov08</project> <项目>DEL_CA_ROBOTSToolsCCNet17Nov08</项目>

为了

  <project>Project_nameView_name</project>
   <path>StarteamFolderName</path>

For example, if your project name is DEL_CA_ROBOTS and view name is also DEL_CA_ROBOTS , script should be something like ..

   <project>DEL_CA_ROBOTSDEL_CA_ROBOTS</project>
   <path>ToolsCCNet17Nov08</path>

希望它能有所帮助。

你是否尝试过在StarTeam中将区域设置为<culture>en-US</culture>

我在使用 Visual Source Safe 时也遇到过同样的问题。唯一的问题是因为区域设置没有正确设置。

干杯。





相关问题
热门标签