Re: SVN checkout error
Thomas C Amundsen III <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <1241623358.5823.37.camel@avalokiteshvara> |
Sorry, I guess I should have explained a few more things.
This is in my Ant build file (cc-build.xml) that the CC is configured to
execute. So it seems like it is just an Ant problem, but read further.
The Ant script looks like:
---------------------------------------------------------------
<project name="cc-build" default="build" basedir="checkout">
[snip]
<target name="build" depends="init">
<delete dir="Nestor"/>
<exec executable="svn">
<arg line="co -r HEAD --username USER --password PASS
--non-interactive svn+ssh://PATH/TO/REPOSITORY"/>
</exec>
<ant antfile="build-internal.xml" dir="Nestor" target="issue-src"/>
<ant antfile="build-internal.xml" dir="Nestor" target="issue-bin"/>
</target>
</project>
---------------------------------------------------------------
Yes, I do have write permission for the account running CC. I can
navigate to that location, execute the same command, and it checks it
out just fine. Actually, the strange thing is that I can even do "ant
-buildfile cc-build.xml" just like CC should be doing, and it works when
I do that.
It just doesn't work when CC does it. By the way, I am just running
cruisecontrol.sh from the command-line on a remote server, then using
screen, detaching from it, and logging out. Also, this DID actually work
for me at some point last week.
Any thoughts?
- Tom
On Wed, 2009-05-06 at 16:55 +0300, Jani Mikkonen wrote:
> Is that <exec /> block part of your cc configuration files or is it
> ant configuration ?
>
> If its part of cc configuration, i dont spot any location to WHERE you
> want to checkout the svn repo ? Are you sure that the location where
> the svn is being executed and where the checkout should be placed is
> what you really want ? And does that directory have a write
> permission for a user account that is running cruisecontrol daemon ?
>
>
>
> On Wed, May 6, 2009 at 3:57 PM, Thomas C Amundsen III
> <[email protected]> wrote:
> > Hi everyone,
> >
> > I am having problems getting CruiseControl to checkout a fresh copy of
> > our project from SVN. I couldn't get the Ant SVN task to work with a
> > supplied username and password, so I did it via exec like this:
> >
> > <exec executable="svn">
> > <arg line="co -r HEAD --username USER --password PASS
> > --non-interactive svn+ssh://PATH/TO/REPOSITORY"/>
> > </exec>
> >
> > However, this results in me getting errors:
> >
> > ----------------------------------------------------------------------
> > [cc]May-06 05:52:58 ScriptRunner - [delete] Deleting
> > directory /PATH/TO/PROJECT
> > USER@SERVER's password:
> > [cc]May-06 05:52:58 ScriptRunner - [exec] Permission denied,
> > please try again.
> > USER@SERVER's password:
> > [cc]May-06 05:52:58 ScriptRunner - [exec] Permission denied,
> > please try again.
> > USER@SERVER's password:
> > [cc]May-06 05:52:58 ScriptRunner - [exec] Permission denied
> > (publickey,gssapi-keyex,gssapi-with-mic,password).
> > [cc]May-06 05:52:58 ScriptRunner - [exec] svn: Connection closed
> > unexpectedly
> > [cc]May-06 05:52:58 ScriptRunner - [exec] Result: 1
> > [cc]May-06 05:52:58 ScriptRunner -
> > [cc]May-06 05:52:58 ScriptRunner - BUILD FAILED
> > [cc]May-06 05:52:58 ScriptRunner - /PATH/TO/cc-build.xml:16:
> > Basedir /PATH/TO/PROJECT does not exist
> > ----------------------------------------------------------------------
> >
> > Does anyone know how to resolve this issue?
> >
> > Thanks,
> > Tom
> >
> > P.S. - Yes, the username and password I am providing work, and I can
> > checkout the project when I execute that _same_ svn command from the
> > command-line.
> >
> >
> > ------------------------------------------------------------------------------
> > 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
------------------------------------------------------------------------------
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