configuring uppercut for automated build

Posted by deepasun on Super User See other posts from Super User or by deepasun
Published on 2010-05-10T09:20:53Z Indexed on 2010/05/10 9:25 UTC
Read the original article Hit count: 238

Filed under:

This is my cc.net's config file.

http://confluence.public.thoughtworks.org/display/CCNET/Configuration+Preprocessor --> --> -->

<!-- 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>
            <exec>
                <executable>$(working_directory)\$(projectName)\build.bat</executable>
            </exec>
        </tasks>
        <publishers>
            <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="[email protected]" mailhost="smtp.somewhere.com" includeDetails="TRUE">
                <users>
                    <user name="YOUR NAME" group="BuildNotice" address="[email protected]" />
                </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="80" svnpath="http://192.168.1.8/trainingrepos/deepasundari/WindowsFormsApplication1" />

It is not producing the build directory in code_drop, but updating reports.xml with updated build.. wht is the problem?

© Super User or respective owner

Related posts about cruisecontrol