CCNET中的GIT源控件在触发发生时构建所有项目

时间:2013-04-08 11:05:10

标签: git cruisecontrol.net

我在Windows 7Ent上安装了CCNET,以便从GIT(Ubuntu)服务器生成autobuild源。 Evething还可以,但我有一个很大的问题:

我的回购结构:

enter code here
  REPO1
        --module 1
        --module 2
        --module 3
        --module 4  

当CCNET检测到触发时,它将从第一个模块构建到最后一个模块。 我不想这样做。只需构建哪个模块已被修改。 你能告诉我怎么做吗?

我的ccnet CONFIG:

<project name="DA 5.0" queue="01" queuePriority="01" category="01">
<artifactDirectory>&pathToArtifactsDirectory;Dashboard 5.0\</artifactDirectory>
&workingDirectory;
<webURL>http://&buildServerAddress;/ccnet/server/&buildServerName;/project/Da /ViewLatestBuildReport.aspx</webURL>
&modificationDelaySeconds;
<triggers>
  <intervalTrigger seconds='30' buildCondition='IfModificationExists'/>
  <scheduleTrigger time='03:00' buildCondition='ForceBuild' name='Scheduled'/>
  <scheduleTrigger time='11:00' buildCondition='ForceBuild' name='Scheduled'/>
</triggers>
<state type="state" directory="&pathToStatesDirectory;Dashboard 5.0\" />

    <sourcecontrol type="git">
      <repository>&gitAddress;</repository>
      <branch>master</branch>
      <autoGetSource>true</autoGetSource>
      <fetchSubmodules>true</fetchSubmodules>
      <executable>C:\Program Files (x86)\Git\cmd\git.exe</executable>
      <tagOnSuccess>false</tagOnSuccess>
      <commitBuildModifications>false</commitBuildModifications>
      <commitUntrackedFiles>false</commitUntrackedFiles>
       <workingDirectory>&pathDB5MainCheckoutDirectory;framework</workingDirectory>
      <timeout>3000000</timeout>
    </sourcecontrol>


<tasks>
  <nant>
    <executable>&pathToNantFile;</executable>
    <baseDirectory>&pathToBuildScriptsDirectory;Da\</baseDirectory>
    <buildArgs>-D:projects_to_build=framework</buildArgs>
    <buildFile>cruise.build</buildFile>
    <targetList>
      <target>automate</target>
    </targetList>
    <buildTimeoutSeconds>3000</buildTimeoutSeconds>
  </nant>

</tasks>
<publishers>
  <merge>
    <files>
      <file>&pathDB5MainCheckoutDirectory;framework\build\test-reports\*Test.dll-results.xml</file>
      <file>&pathDB5MainCheckoutDirectory;framework\build\test-reports\Test*.dll-results.xml</file>
      <file>&pathDB5MainCheckoutDirectory;framework\build\test-reports\simian.xml</file>
    </files>
  </merge>
  <xmllogger />
</publishers>

0 个答案:

没有答案