与Cruisecontrol.net和nant的持续集成 [英] Continuous Integration with Cruisecontrol.net and nant

查看:54
本文介绍了与Cruisecontrol.net和nant的持续集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用cruisecontrol.net和nant(ver 0.91-alpha 2)进行持续集成和自动构建过程.源代码驻留在远程CVS存储库中.问题是当我对代码进行一些更改时,在cc.net中检查它是否可以检测到更改并启动构建过程(到目前为止一切顺利),但是无论我对代码进行了什么更改,nant都可以成功构建(即使删除了括号或名称空间以及其他任何内容).无法理解为什么构建不会失败.
最近我发现cc.net没有检测到对
所做的更改 其他开发人员编写的代码.
我的cc.net配置文件和nant构建文件都包括在内.
请帮忙.

CC.net配置文件

I am trying to have a continuous integration and auto build process using cruisecontrol.net and nant(ver 0.91-alpha 2).Source code resides on a remote CVS repository.The problem is when I make some changes to the code and check it in cc.net detects the change and kicks off the build process(so far so good),but nant successfully builds no matter what changes I made in the code(even if I remove a bracket or a namespace and anything).I am unable to understand why the build is not failing.
And recently I found out that cc.net is not detecting the changes made to
the code by other developers.
My cc.net config file and the nant build file are included.
Please help.

CC.net config file

<cruisecontrol>
    <project name ="TEMT Integration">
    <workingDirectory>C:\Program Files\TEMTIntegration</workingDirectory>
    <artifactDirectory>C:\Program Files\TEMTIntegration\</artifactDirectory>
    <triggers>
      <intervalTrigger seconds="300" buildCondition="IfModificationExists"/>
      <scheduleTrigger time="02:00" buildCondition="ForceBuild">
      <weekDays />
      </scheduleTrigger>
    </triggers>
    <modificationDelaySeconds>10</modificationDelaySeconds>
    <sourcecontrol type="cvs">
      <executable>C:\Program Files\CVSNT\cvs.exe</executable>
      <cvsroot>:pserver;username=Usrnm;password=pwd;hostname=host:/cvsadmin/it_projects</cvsroot>
      <module>TEMT</module>
      <workingDirectory>C:\Program Files\TEMTIntegration</workingDirectory>
      <labelOnSuccess>True</labelOnSuccess>
    </sourcecontrol>
    <tasks>
      <nant>
        <executable>C:\Program Files\nant-0.91-alpha2\bin\nant.exe</executable>
        <baseDirectory>C:\Program Files\TEMTIntegration</baseDirectory>
        <buildFile>C:\Program Files\TEMTIntegration\default.build</buildFile>
        <buildTimeoutSeconds>300</buildTimeoutSeconds>
      </nant>
    </tasks>
    <publishers>
    <xmllogger logDir ="Logs" />
    </publishers>
  </project>
</cruisecontrol>



nant.build文件



nant.build file

<?xml version="1.0"?>
<project name="TEMT Integration Test"

  default="run">
  <property name="TEMT.dir" value="C:\Program Files\TEMTIntegration" />
  <target name="clean" description="Deletes compiled binaries">
    <delete>
      <fileset>
        <include name ="${TEMT.dir}/**/bin/**/*" />
        <include name ="${TEMT.dir}/**/obj/**/*" />
        <exclude name ="${TEMT.dir}/**/Core/bin/Debug/ReportHelper.dll" />
        <exclude name ="${TEMT.dir}/**/Core/bin/Debug/ReportHelper.pdb" />
        <exclude name ="${TEMT.dir}/**/Core/obj/Debug/ReportHelper.dll" />
        <exclude name ="${TEMT.dir}/**/Core/obj/Debug/ReportHelper.pdb" />
      </fileset>
    </delete>
  </target>
  <target name="checkout">
    <cvs-checkout

       cvsroot=":pserver;username=usrnm;password=pwd;hostname=host:/cvsadmin/it_projects"

       module="TEMT"

      <!-- cvsfullpath="C:\Program Files\CVSNT\cvs.exe" -->
       destination="C:\Program Files\TEMTIntegration\">
    </cvs-checkout>
  </target>
  <target name="build" description="Builds TEMT">
     <solution configuration="release">
        <projects>include name = "C:\Program Files\TEMTIntegration\TEMTSource\TEMT\TEMT.sln"</projects>
     </solution>
  </target>
  <target

    name="run" depends="clean,checkout,build">
  </target>
</project>

推荐答案

{TEMT.dir}/**/bin/**/*" / > < include 名称 ="
{TEMT.dir}/**/bin/**/*" /> <include name ="


{TEMT.dir}/**/obj/**/*" / < 排除 名称 ="
{TEMT.dir}/**/obj/**/*" /> <exclude name ="


{TEMT.dir}/**/Core/bin/Debug/ReportHelper.dll" / > < 排除 名称 ="
{TEMT.dir}/**/Core/bin/Debug/ReportHelper.dll" /> <exclude name ="


这篇关于与Cruisecontrol.net和nant的持续集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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