svn+ssh key file [message #536920] |
Mon, 31 May 2010 09:54  |
Eclipse User |
|
|
|
Hello everybody,
I am trying to get rid of svn authentication errors in a headless
Buckminster build (Hudson-driven) with svn+ssh access scheme using private
key files.
I can't cope with getting the credentials recognized, tried with subversive
as well as subclipse.
I assume the problem is that the repository user is not the same one as the
hudson user, so that the private key file is not found. Is there a way to
specify the key file ?
My rmap spec looks like this:
<uri
format="svn+ssh://{0}@{1}/trunk/{2}?moduleAfterTag&moduleAfterBranch">
<bc:propertyRef key="my.svn.user" />
<bc:propertyRef key="my.svn.repository" />
<bc:propertyRef key="buckminster.component" />
</uri>
Error with subversive:
org.eclipse.team.svn.core.connector.SVNConnectorAuthenticati onException:
svn: Authentication required for '<uri>'
Any help appreciated.
Regards,
Axel
|
|
|
|
Re: svn+ssh key file [message #536935 is a reply to message #536929] |
Mon, 31 May 2010 10:46   |
Eclipse User |
|
|
|
Hi Michal,
thanks for your reply.
> Hi Axel,
> you should be able to make it work by:
> - making sure you are using the SVNKit
How can I ensure that for the headless eclipse used during the build?
> - and then following the instructions given at:
> http://svnkit.com/kb/user-guide-config-settings.html in the section
> "SVN+SSH authentication with private key in Eclipse"
Just started to play with what you've written at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=310204#c3 (thanks to Henrik
for pointing this out), but no success yet.
Greetings
Axel
>
> Note that I haven't tested that approach though, so please don't hold me
> responsible if it doesn't work out.
> HTH
> Michal
>
> Dne 31.5.2010 15:54, Axel Guckelsberger napsal(a):
>> Hello everybody,
>>
>> I am trying to get rid of svn authentication errors in a headless
>> Buckminster build (Hudson-driven) with svn+ssh access scheme using
>> private key files.
>> I can't cope with getting the credentials recognized, tried with
>> subversive as well as subclipse.
>> I assume the problem is that the repository user is not the same one as
>> the hudson user, so that the private key file is not found. Is there a
>> way to specify the key file ?
>>
>> My rmap spec looks like this:
>> <uri
>>
format="svn+ssh://{0}@{1}/trunk/{2}?moduleAfterTag&moduleAfterBranch">
>> <bc:propertyRef key="my.svn.user" />
>> <bc:propertyRef key="my.svn.repository" />
>> <bc:propertyRef key="buckminster.component" />
>> </uri>
>>
>> Error with subversive:
>> org.eclipse.team.svn.core.connector.SVNConnectorAuthenticati onException:
>> svn: Authentication required for '<uri>'
>>
>>
>> Any help appreciated.
>>
>> Regards,
>> Axel
|
|
|
|
|
|
Re: svn+ssh key file [message #537016 is a reply to message #536965] |
Mon, 31 May 2010 18:44  |
Eclipse User |
|
|
|
I think you should log that issue.
Regards
- henrik
On 5/31/10 7:14 PM, Axel Guckelsberger wrote:
> The following exceptions do still occur during the cquery import. Don't know
> whether it could be a bug, maybe it can be of interest for you.
>
> http://pastebin.com/k3RMHCf3
>
> Looks like the team provider wants to open a ui element.
>
> Greetings
> Axel
>
>
> Axel Guckelsberger wrote:
>
>> Thank you very much! It works - finally :-)
>>
>> Regards
>> Axel
>>
>>
>> Michal Ruzicka wrote:
>>
>>> Dne 31.5.2010 16:46, Axel Guckelsberger napsal(a):
>>>> Hi Michal,
>>>>
>>>> thanks for your reply.
>>>>
>>>>> Hi Axel,
>>>>> you should be able to make it work by:
>>>>> - making sure you are using the SVNKit
>>>> How can I ensure that for the headless eclipse used during the build?
>>> Headless Buckminster bundles the SVNKit by default (both with
>>> Subversiove and Subclipse). So you should be fine.
>>>>
>>>>> - and then following the instructions given at:
>>>>> http://svnkit.com/kb/user-guide-config-settings.html in the section
>>>>> "SVN+SSH authentication with private key in Eclipse"
>>>> Just started to play with what you've written at
>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=310204#c3 (thanks to
>>>> Henrik for pointing this out), but no success yet.
>>> This unfortunately won't work with SVNKit, as it uses yet another java
>>> implementation of SSH than the preferences mentioned in the bugzilla are
>>> targeted at.
>>> You will need to set the properties mentioned at the
>>> http://svnkit.com/kb/user-guide-config-settings.html page.
>>> If you use the Buckminster plugin for Hudson
>>> (http://wiki.hudson-ci.org/display/HUDSON/Buckminster+PlugIn) then you
>>> need to supply those properties to your "Run Buckminster" build step as
>>> "JVM Arguments" in the "Advanced Options" section. Something like this:
>>> -Dsvnkit.ssh2.key=/path/to/private/key/file
>>>
>>> HTH
>>> Michal
>
|
|
|
Powered by
FUDForum. Page generated in 0.08588 seconds