release-start fails with org.eclipse.jgit.api.errors.TransportException: ... Auth fail

1,413 views
Skip to first unread message

Rastko Soskic

unread,
Dec 20, 2016, 11:17:52 AM12/20/16
to Maven JGit Flow Plugin
Hi, I am logging this issue simply because existing docs and Internet search gave no clues so should you
know how to deal with it, please mention it within docs and of course let me know here.

Basically, I am trying to set up automated Jenkins build job via jgitflow.

However, I am unable to get over 
org.eclipse.jgit.api.errors.TransportException: ssh://git@gitserver/pf/data-validation.git: Auth fail


The point is that keys are fine and are not password protected.
In addition, git tools on same machine are able to fetch repository with no problem and build server connects to git via ssh as well.

I have tried and succeeded to start ssh agent and add identity to it prior to jgitflow takes over but all efforts failed.

I have checked out output and this is only line which stands out
[INFO] Use default SSH connector (what is default connector?)

Is there anything else I should set in plugin config except what currently I have:

<version>1.0-m5.1</version>
<configuration>
    <enableSshAgent>true</enableSshAgent>
    <allowSnapshots>false</allowSnapshots>
    <autoVersionSubmodules>true</autoVersionSubmodules>
    <scmCommentPrefix>[RELEASE]</scmCommentPrefix>
    <pushReleases>true</pushReleases>
    <flowInitContext>
        <masterBranchName>master</masterBranchName>
        <developBranchName>develop</developBranchName>
        <featureBranchPrefix>feature-</featureBranchPrefix>
        <releaseBranchPrefix>release-</releaseBranchPrefix>
        <hotfixBranchPrefix>hotfix-</hotfixBranchPrefix>
        <versionTagPrefix>version-</versionTagPrefix>
    </flowInitContext>
</configuration>

Thanks in advance.
Any help is appreciated.

Rastko Soskic

unread,
Dec 20, 2016, 11:19:18 AM12/20/16
to Maven JGit Flow Plugin
I apologize for inconvenient formatting...it sneaked in :)

Dan Armbrust

unread,
Dec 20, 2016, 5:59:26 PM12/20/16
to maven-jgit...@googlegroups.com
Make sure that you are testing your ssh keys as the same user that jenkins is running as - try to run the maven build manually as the jenkins user - see if it work and/or you have the keys setup in the correct account.

Beyond that, you will likely find better information / details on the access issues by looking at the jgit project: https://eclipse.org/jgit/

Dan
--
You received this message because you are subscribed to the Google Groups "Maven JGit Flow Plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maven-jgitflow-u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Rastko Soskic

unread,
Dec 21, 2016, 6:29:38 AM12/21/16
to Maven JGit Flow Plugin
Thanks for your reply, well, yeah, I have already tried manually to build as the jenkins user and that way, jgitflow fails to start release
but due to completely another thing (before even going to git) 
libXrender.so.1: cannot open shared object file: No such file or directory
So looks like I will need to check out whole env before even trying to get over ssh access :( given that in jenkins build context there is no shared lib problem :|

Cheers,
To unsubscribe from this group and stop receiving emails from it, send an email to maven-jgitflow-users+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages