question about modificatoinset of svn repository

java8964 java8964 <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hi,

I am using cruise control 2.8.2. I have the following case which troubles me. Here is my setup:

I have one svn repository, with trunk and branch 2 projects.

The svn url for trunk is http://svnhost/svnroot/projectA/trunk
the url for branches is http://svnhost/svnroot/projectA/branches/1.0

In my cruisecontrol control.xml, I have 2 projects:

<project name="trunk" buildafterfailed="false">
        <property name="svn.portal.project" value="${svn.repository.root}/projectA/trunk"/>
        <plugin name="svn" classname="net.sourceforge.cruisecontrol.sourcecontrols.SVN"/>
        <plugin name="labelincrementer" classname="net.sourceforge.cruisecontrol.labelincrementers.PropertyFileLabelIncrementer"/>
        <labelincrementer defaultLabel="unknown" propertyFile="${project.root}/build/build_label" propertyname="build.label"/>
        <listeners>
            <currentbuildstatuslistener file="${project.log}/currentbuildstatus.txt"/>
        </listeners>
        <bootstrappers>
            <svnbootstrapper LocalWorkingCopy="${project.root}" username="${svn.user}" password="${svn.password}"/>
        </bootstrappers>
        <modificationset quietperiod="${quiet.period}">
                        <svn RepositoryLocation="${svn.portal.project}" username="${svn.user}" password="${svn.password}"/>
        </modificationset>
        <schedule interval="${schedule.interval}">
            <ant anthome="${ant.home}" buildfile="${project.root}/build/build.xml" target="daily-build" antWorkingDir="${project.root}/build" saveLogDir="${project.log}/buildlog" usedebug="false" usequiet="true" uselogger="true"/>
        </schedule>
</project>
<project name="branch1.0" buildafterfailed="false">
        <property name="svn.portal.project" value="${svn.repository.root}/projectA/branches/1.0"/>


        <plugin name="svn" classname="net.sourceforge.cruisecontrol.sourcecontrols.SVN"/>

        <plugin name="labelincrementer"
classname="net.sourceforge.cruisecontrol.labelincrementers.PropertyFileLabelIncrementer"/>

        <labelincrementer defaultLabel="unknown"
propertyFile="${project.root}/build/build_label"
propertyname="build.label"/>

        <listeners>

            <currentbuildstatuslistener file="${project.log}/currentbuildstatus.txt"/>

        </listeners>

        <bootstrappers>

            <svnbootstrapper LocalWorkingCopy="${project.root}" username="${svn.user}" password="${svn.password}"/>

        </bootstrappers>

        <modificationset quietperiod="${quiet.period}">

                        <svn
RepositoryLocation="${svn.portal.project}" username="${svn.user}"
password="${svn.password}"/>

        </modificationset>

        <schedule interval="${schedule.interval}">

            <ant anthome="${ant.home}"
buildfile="${project.root}/build/build.xml" target="daily-build"
antWorkingDir="${project.root}/build"
saveLogDir="${project.log}/buildlog" usedebug="false" usequiet="true"
uselogger="true"/>

        </schedule>

</project>

As you can see, both projects pointing to the different URL path of svn, but they are in the same svn repository.

Here is the problem:

What I want is ONLY build each projects when there is code check-in into each path. Trunk build should only starts when there is code check-in into trunk path; and branch 1.0 build should only starts when code is checked in into branch 1.0 path.

But right now, when there is code check in into the trunk, the branches 1.0 will queued and started too after the trunk build finished; of course with no real modification showing the final build report. My guess is that when there is code check in, even in the trunk path, the revision number will change in the whole svn repository, make the branch 1.0 project thinks there is modification.

Does anyone has the similar problem? If so, is there a good solution?

Thanks


 		 	   		  
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/196390709/direct/01/

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.