在cc.net(cruisecontrol.net)中使用勾拳的问题

时间:2010-05-10 14:52:48

标签: cruisecontrol.net

我已经安装了上层集成cc.net这样的方式,我没有在webdashboard中做任何改变,

这是我的cc.net配置代码,

                              - >           - >

<!-- PROJECT STRUCTURE -->
<cb:define name="WindowsFormsApplication1">
    <project name="$(projectName)">
        <workingDirectory>$(working_directory)\$(projectName)</workingDirectory>
        <artifactDirectory>$(drop_directory)\$(projectName)</artifactDirectory>
        <category>$(projectName)</category>
        <queuePriority>$(queuePriority)</queuePriority>
        <triggers>
            <intervalTrigger name="continuous" seconds="60" buildCondition="IfModificationExists" />
        </triggers>
        <sourcecontrol type="svn">
            <executable>c:\program files\subversion\bin\svn.exe</executable>
            <!--<trunkUrl>http://192.168.1.8/trainingrepos/deepasundari/WindowsFormsApplication1</trunkUrl>-->
            <trunkUrl>$(svnPath)</trunkUrl>
            <workingDirectory>$(working_directory)\$(projectName)</workingDirectory>
        </sourcecontrol>
        <tasks>
            <msbuild>
                    <executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>
                    <workingDirectory>$(working_directory)\$(projectName)</workingDirectory>
                    <projectFile>WindowsFormsApplication1.sln</projectFile>
                    <timeout>600</timeout>
                  <buildArgs> /noconsolelogger /p:configuration=Debug </buildArgs>
                    <!--<buildArgs>/noconsolelogger /p:OutputPath=$(drop_directory)\$(projectName)\sample </buildArgs>-->
                    <logger>ThoughtWorks.CruiseControl.MsBuild.XmlLogger,C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
            </msbuild>
            <!--<labeller type="svnRevisionLabeller">
                <prefix>Test-</prefix>
                <major>7</major>
                <minor>11</minor>
                <url>$svnpath</url>
                <username>deepasundari</username>
                <password>deepasundari</password>
            </labeller>-->

            <exec>
                <executable>$(working_directory)\$(projectName)\build.bat</executable>
            </exec>
        </tasks>
        <publishers>
            <!--<buildpublisher>
                --><!--<sourceDir>C:\myprojects\project1</sourceDir>--><!--
                <publishDir>$(working_directory)\$(projectName)</publishDir>
            </buildpublisher>-->

            <merge>
                <files>
                    <file>$(working_directory)\$(projectName)\build_output\build_artifacts\*.xml</file>
                    <file>$(working_directory)\$(projectName)\build_output\build_artifacts\mbunit\*-results.xml</file>
                    <file>$(working_directory)\$(projectName)\build_output\build_artifacts\nunit\*-results.xml</file>
                    <file>$(working_directory)\$(projectName)\build_output\build_artifacts\ncover\*-results.xml</file>
                    <file>$(working_directory)\$(projectName)\build_output\build_artifacts\ndepend\*.xml</file>

                </files>
            </merge>
            <!--<email from="buildserver@somewhere.com" mailhost="smtp.somewhere.com" includeDetails="TRUE">
                <users>
                    <user name="YOUR NAME" group="BuildNotice" address="yourEmail@somewhere.com" />
                </users>
                <groups>
                    <group name="BuildNotice" notification="change" />
                </groups>
            </email>-->
            <xmllogger/>
            <statistics>
                <statisticList>
                    <firstMatch name="Svn Revision" xpath="//modifications/modification/changeNumber" />
                    <firstMatch name="ILInstructions" xpath="//ApplicationMetrics/@NILInstruction" />
                    <firstMatch name="LinesOfCode" xpath="//ApplicationMetrics/@NbLinesOfCode" />
                    <firstMatch name="LinesOfComment" xpath="//ApplicationMetrics/@NbLinesOfComment" />
                </statisticList>
            </statistics>
            <modificationHistory onlyLogWhenChangesFound="true" />
            <rss/>
        </publishers>
    </project>
</cb:define>

<cb:WindowsFormsApplication1 projectname="WindowsFormsApplication1" queuepriority="1" svnpath="http://192.168.1.8/trainingrepos/deepasundari/WindowsFormsApplication1" />

此代码正在更新rss并报告xml文件,但我无法在code_drop中获取构建文件夹..

任何人都可以帮我解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

看起来你已经几乎完美地跟踪了样本。 http://uppercut.googlecode.com/svn/trunk/docs/Samples/CC.NET/server/ccnet.config

您应该在构建服务器的code_drop文件夹中看到的是一个文件夹b ## - r ##,用于每个构建的构建和修订。

大部分内容都在这里讨论:http://uppercut.googlecode.com/svn/trunk/docs/IntegrateUppercuTWithCruiseControl.NET.doc