Re: CruiseControl Not Deploying Changes on a CVS Branch

"Flaisher, Harvey (NIH/NCI) [C]" <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hi Chuck:

Thank you.  In config.xml, our modificationset tag defines only the module:

    <!-- Defines where CruiseControl looks for changes, to decide whether to run the build -->
    <modificationset quietperiod="10">
      <cvs cvsroot=":pserver:...." module="hints"/>
    </modificationset>

    <!-- Configures the actual build loop, how often and which build file/target -->
    <schedule interval="20">
      <ant buildfile="build-hints205.xml" uselogger="true"/>
    </schedule>

The <ant> buildfile contains the CVS task info, with branch:

<project name="build-hints205"
        default="build"
        basedir="projects/hints205">
    <target name="build">
        <!-- Get the latest from CVS -->
        <cvs command="update -P -d -r BR-2-0-5-1"/>
        <!-- Call the target that does everything -->
        <ant antfile="build.xml" target="deploy"/>
    </target>
</project>

This used to work fine.  Do you see a problem doing it this way?

Thanks much.

Regards,
Harvey

------------------------------------------------------------
Harvey Flaisher
Consultant/Web Developer
Information Management Consultants, Inc.
Contractor for: Division of Cancer Control and Population Sciences

National Cancer Institute
6116 Executive Boulevard
Suite #211, MSC 8355
Bethesda, MD  20892
Phone: 301-402-3377
Fax: 301-480-3710
Email: [email protected]<mailto:[email protected]>
________________________________
From: Chuck Burgess [mailto:[email protected]]
Sent: Thursday, September 10, 2009 11:37 AM
To: [email protected]
Subject: Re: [Cruisecontrol-user] CruiseControl Not Deploying Changes on a CVS Branch

On Thu, Sep 10, 2009 at 10:25 AM, Flaisher, Harvey (NIH/NCI) [C] <[email protected]<mailto:[email protected]>> wrote:

Hello:



CC was working fine on a branch of our project, "BR-2-0-5".  We then merged that branch with the trunk and created another branch, "BR-2-0-5-1".  Since that time, CC has ceased to work properly and nothing is being deployed off the new branch, "BR-2-0-5-1".  config.xml points to a build file:



    <schedule interval="20">

      <ant buildfile="build-hints205.xml" uselogger="true"/>

    </schedule>



And in build-hints205.xml, I have:



<project name="build-hints205" default="build" basedir="projects/hints205">

    <target name="build">

        <cvs command="update -P -d -r BR-2-0-5-1"/>

        <ant antfile="build.xml" target="deploy"/>

    </target>

</project>



On startup, no errors (hints205)



[cc]Sep-10 10:47:40 Project       - Project hints205 started

[cc]Sep-10 10:47:40 Project       - Project hints205:  next build in 20 seconds

[cc]Sep-10 10:47:40 Project       - Project hints205:  waiting for next time to build

....

[cc]Sep-10 10:47:57 BuildQueue    - BuildQueue started



When CC makes its first pass at attempting to deploy this project, CC does not recognize the changed file in CVS:



 [parsley:cruisecontrol_workdir][cc]Sep-10 10:48:00 Project       - Project hints205:  in build queue

[cc]Sep-10 10:48:00 jectController- hints205 Controller: build progress event: in build queue

[cc]Sep-10 10:48:00 BuildQueue    - now adding to the thread queue: hints205

[cc]Sep-10 10:48:00 Project       - Project hints205:  bootstrapping

[cc]Sep-10 10:48:00 jectController- hints205 Controller: build progress event: bootstrapping

[cc]Sep-10 10:48:00 Project       - Project hints205:  checking for modifications

[cc]Sep-10 10:48:00 jectController- hints205 Controller: build progress event: checking for modifications

[cc]Sep-10 10:48:00 VersionsSystem- cvs checkout: cannot find module `CVSROOT/users' - ignored

[cc]Sep-10 10:48:00 VersionsSystem- problem getting CVSROOT/users; using empty email map

--->   [cc]Sep-10 10:48:06 Project       - Project hints205:  No modifications found, build not necessary.

[cc]Sep-10 10:48:06 Project       - Project hints205:  idle

[cc]Sep-10 10:48:06 jectController- hints205 Controller: build progress event: idle

[cc]Sep-10 10:48:06 Project       - Project hints205:  next build in 20 seconds





And nothing is deployed, when one file should have been (a test file I checked into CVS).  (I think CVSROOT/users is not a substantive error, as it involves emails).  When I update from CVS manually to the localworkingcopy (cruisecontrol_workdir/projects/hints205) at the Unix command prompt:



cvs update -P -d -r BR-2-0-5-1



CVS recognizes the file as having been changed and updates it locally:



P wwwroot/sharing.jsp



So this appears to be a CC problem.  Could anyone give me some direction?



Thanks in advance for any advice.



Regards,

Harvey


Hi Harvey,

It sounds to me like perhaps the modificationset piece is set to only check your original branch rather than the new one.  Are you using the cvs task inside modificationset to do the check?
--
CRB

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
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.