Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: (Hudson) Issue #167 - SVN Update not working: msg#00037

Subject: Re: (Hudson) Issue #167 - SVN Update not working
Peter Nicolai wrote:
I'm getting authentication errors and don't see anywhere I can specify
a username.  Is authentication support not implemented yet?

Sounds like there's still some bugs left. What protocol do you use to talk to the server? I only tested WebDAV based securtiy (http/https.) Maybe you use svn+ssh?

The way it's implemented is that when you enter svn URL in the config page, on the background the system tries to access the repository. If it fails with the authentication error, you'll be promopted to enter the password information.

In the meantime, you can type in

        http://localhost/hudson/scm/SubversionSCM/enterCredential

And enter the authentication credential to Hudson. Hope it works.


On 1/15/07, Kohsuke Kawaguchi <Kohsuke.Kawaguchi@xxxxxxx> wrote:

Hi,

I integrated the Java svn client into Hudson. Can you download the
snapshot
<https://hudson.dev.java.net/servlets/ProjectDocumentList?folderID=4939&expandFolder=4939&folderID=2761>
and see if it fixes the problem?

Peter Nicolai wrote:
>> I'm really out of ideas at this point. Do you have other ideas?
>
> oof... I guess if this only ever happens on Windows, it could be a)
> something with Windows processes, threads, IO or filesystem, b) Java's
> handling of those things (on Windows), c) an actual bug in Hudson that
> only shows up because of either of those things or something else...
> whatever the case, since it doesn't appear on your Windows dev system
> (maybe something about the debug environment prevents it from
> happening somehow) and has to do with processes and threads, it's
> going to be a nightmare to debug - which in itself is often a good
> reason to use a different technique.  That's why I thought a Java SVN
> lib (and CVS for that matter) might be preferable, since you can
> literally step through all the code if you need to, whereas with
> Process it's more of a black box.
>
> Apache Continuum has Java libs for its scm and seems to work fine, but
> the interface is nowhere near as nice as Hudson's and there's no
> support for distributed build machines, so I think I'm going to
> continue to use Hudson but just put an "svn update" in the project's
> config, in the "Execute Windows command" box, before the line that
> executes the batch file - it seems to work just fine.  (I originally
> had it in the batch script, but then of course I realized that the
> batch file itself is in SVN...)
>
>>
>> I'll work on #49 in a higher priority.
>>
>
> Great! I'm otherwise really impressed with Hudson so far, and using
> this workaround isn't really a problem for me at the moment.
>
>
>
>
>> >
>> > C:\Documents and 
Settings\pnico\.hudson\jobs\test\workspace>test_hudson\test.bat
>> >
>> > C:\Documents and Settings\pnico\.hudson\jobs\test\workspace>echo "This
>> > is rev 5 xxx"
>> > "This is rev 5 xxx"
>> >
>> > C:\Documents and Settings\pnico\.hudson\jobs\test\workspace>exit 0
>> > finished: SUCCESS
>> >
>> >
>> >
>> >
>> > On 1/11/07, Kohsuke Kawaguchi <Kohsuke.Kawaguchi@xxxxxxx> wrote:
>> >> Peter Nicolai wrote:
>> >> > Yeah, it seems to make sense if it was already wanted for other
>> >> > reasons, although I know it probably takes a bit of work.
>> >>
>> >> Yeah. I just started looking at the API. I'll have to play with it first.
>> >>
>> >> > If it would be easy to do any of the things you talked about before -
>> >> > adding a pause between svn info and svn update for example - I'd be
>> >> > happy to test to see if that would help at all.  let me know - Peter
>> >>
>> >> OK. Thanks. I just added another hook to set a pause.
>> >>
>> >> If you can run "hudson.scm.SubversionSCM.pauseBetweenInvocation=1000"
>> >> from your scripting console, and see if that fixes the problem, that
>> >> would be great. 1000 is the number of milliseconds to pause, so pick the
>> >>   amount that works for you. If you choose a big enough number, you
>> >> should be able to see that svn process indeed terminates from Windows
>> >> task manager or (better yet) Sysinternal's Process Explorer.
>> >>
>> >> --
>> >> Kohsuke Kawaguchi
>> >> Sun Microsystems                   kohsuke.kawaguchi@xxxxxxx
>> >>
>> >>
>> >>
>> >
>>
>>
>> --
>> Kohsuke Kawaguchi
>> Sun Microsystems                   kohsuke.kawaguchi@xxxxxxx
>>
>>
>>
>


--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi@xxxxxxx






--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi@xxxxxxx

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

<Prev in Thread] Current Thread [Next in Thread>