<server>
<id>...</id>
<username>...</username>
<password>...</password>
<privateKey>/home/.../.ssh/id_rsa</privateKey>
</server>
On 18 April 2014 16:27, Thomas Broyer <[email protected]> wrote:
> I think by default Maven calls the command-line Git, so it uses the
> ~/.ssh/id_rsa, and not the configuration from your settings.xml.
> I have no idea if what you're trying to do is possible with Maven. Maybe
> the maven-scm-provider-jgit would use the settings.xml configuration, but I
> have no idea how to configure Maven to use it.
>
>
> On Fri, Apr 18, 2014 at 3:45 PM, Maven User <[email protected]>
> wrote:
>
> > Hi all -
> >
> > I'm really struggling with this.
> >
> > My git push portion of the maven release process just is quitting with
> > this:
> >
> > 00:01:29.803 Provider message:
> > 00:01:29.803 The git-push command failed.
> > 00:01:29.803 Command output:
> > 00:01:29.803 Permission denied (publickey).
> > 00:01:29.803 fatal: The remote end hung up unexpectedly
> > 00:01:29.803
> > 00:01:29.803 cause : Unable to commit files
> > 00:01:29.803 Provider message:
> > 00:01:29.803 The git-push command failed.
> > 00:01:29.803 Command output:
> > 00:01:29.803 Permission denied (publickey).
> > 00:01:29.803 fatal: The remote end hung up unexpectedly
> >
> > I have the key stored in Jenkins as a "managed file" (as part of that
> > plugin). So the build has an early step where that key is written to
> > disk.
> >
> > Then I've used the settings.xml to specify which key to use (pointing
> > at that location just above).
> >
> > <server>
> > <id>github.com</id>
> > <username>someusername</username>
> > <privateKey>/srv/jenkins/.ssh/somekeyname</privateKey>
> > <filePermissions>664</filePermissions>
> > <directoryPermissions>775</directoryPermissions>
> > <configuration></configuration>
> > </server>
> >
> > <scm>
> > <connection>scm:git:[email protected]:
> > ${companyid}/${project.artifactId}.git</connection>
> > <url>scm:git:[email protected]:
> > ${companyid}/${project.artifactId}.git</url>
> > <developerConnection>scm:git:[email protected]:
> > ${companyid}/${project.artifactId}.git</developerConnection>
> > <tag>HEAD</tag>
> > </scm>
> >
> > What am I doing wrong?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
>
> --
> Thomas Broyer
> /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/> <
> http://xn--nna.ma.xn--bwa-xxb.je/>
>