solved - Re: poudriere using git+ssh and private key?

Ronald Klop <[email protected]> Thu, 18 Jun 2026 12:23:48 +0200 (CEST)
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <1695983369.116206.1781778228161@localhost>
Thanks all for the suggestions. I figured it out.
I needed to find out as which user this part of the Jenkins job was running and set the private key up in the right spot. Sometimes it is so simple in hindsight.

This ssh-agent step in Jenkins will be a nice addition for the future me.

Thanks and regards,
Ronald.

 
Van: Benjamin Jacobs <[email protected]>
Datum: donderdag, 18 juni 2026 12:07
Aan: Ronald Klop <[email protected]>
CC: [email protected]
Onderwerp: Re: poudriere using git+ssh and private key?
> 
> On Thu, 18 Jun 2026 11:50:01 +0200 (CEST)
> Ronald Klop <[email protected]> wrote:
> 
> > Hi,
> >
> > I'm improving my poudriere setup to get the ports tree via git+ssh.
> >
> > poudriere ports -c -f "dummypool/poudriere/ports/branchX" -m git+ssh
> > -B "branchX" -p "test" -U ssh://ronald@<githost>/usr/ports
> >
> > This works from the command line, but it all runs from Jenkins so I
> > don't want interactive passwords for ssh. How do I pass an ssh
> > private key to the git/ssh invocation?
> >
> > Regards,
> > Ronald.
> >  
> 
> Hi,
> 
> If you have the private key registered in Jenkins' credential store,
> you should be able to do that with the sshagent step, see:
> https://www.jenkins.io/doc/pipeline/steps/ssh-agent/
> 
> If not then you'd want to configure ssh authentication as usual, for
> example by generating a key and copying its public counter part to the
> repository, and/or setup the ~/.ssh/config accordingly.
> 
> Best regards,
> 
> Benjamin
> 
> 
>