Re: svn modifcation issues

Mark Thias <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hello Ian,
The bootstrapper will not update an entire directory but will simply
checkout/update a single file which can act somewhat as a control point for
kicking off other scripts.  For example you might want to use an ant script
such as build_cc.xml as your bootstrapper file.  Within this script, you
could include an ant task to perform an SVN update to refresh your project
directory.  Depending on how you setup SVN it might look something like the
below where username and password are your SVN username and password.

<bootstrappers>
           <svnbootstrapper username="ian"
                                     password="passwordforian"
                                     file="projects/${project.name
}/build_cc.xml"
                                     localWorkingCopy="projects/${
project.name}"  />
</bootstrappers>

In your case build_cc.xml might be "air_ant_script.xml".

What you have in config.xml for "modificationset" might be correct, I just
haven't used a local SVN copy in awhile so can't verify.

"modificationset" checks your SVN project for changes and if it finds one
will kick-off what you define in "schedule". For example the following:

<modificationset quietperiod="${quiet.period}">
    <svn RepositoryLocation="${svn.project}"
                 username="${svn.user}"
                 password="${svn.password}"/>
</modificationset>

An finally, the kicking off of your script.  You don't seem to have a
"target" in your ant script within your "schedule" which means it will just
kick off whatever you defined as the default in your ant script, which is
perfectly fine.  Important thing to remember though is that your ant script
is responsible for making the SVN call to update the project.  CC does not
do this for you.

<schedule interval="60">
            <ant anthome="${ant.home}"
                 buildfile="projects/${project.name}/build_cc.xml"
                 target="deploy"/>
</schedule>

Important thing to remember though is that your ant script is responsible
for making the SVN call to update the project.  CC does not do this for you.
 So you will need something like the below in your "air_ant_script.xml" or
whatever becomes your bootstrap file.

<target name="svn-update" description="Update from Subversion">
        <exec executable="svn">
            <arg line="update"/>
        </exec>
 </target>

The above updates the project fine because build_cc.xml is in the root
directory of the project so it just updates everything from the root down.

Hope that helps,
  Mark


On Tue, May 5, 2009 at 5:09 PM, Ian McLean <[email protected]> wrote:

> Hi Everyone,
>
> I'm a new CruiseControl user and have been fighting with this issue most
> of the day. I want to have builds triggered by commits to my repository.
>
> Based on what I've read I'm attempting to set up an svnbootstrapper to
> update a locally checked out directory. This is combined with a
> modifcationset that checks for changes in that directory (post update)
> and allows the ant script to run if changes are to be found.
>
> This is what I have currently:
> http://pastebin.com/m665bbba5
>
> And this is the log that is generated:
> http://pastebin.com/m4422c6aa
>
> The specific error is this:
> Caused by: java.io.IOException: Cannot run program "svn" (in directory
> "projects\CreativeManagerAIR"): CreateProcess error=2, The system cannot
> find the file specified
>
> I'm not quite sure if the svn plugin cannot be found or if the project
> cannot be found. The relative path is correct, and an absolute path
> results in the same error so I'm at a loss.
>
> Any help is much appreciated.
>
> Thanks,
> -Ian
>
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com

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