Re: poudriere using git+ssh and private key?
Benjamin Jacobs <[email protected]> Thu, 18 Jun 2026 12:07:59 +0200
| Newsgroups | gmane.os.freebsd.devel.ports |
|---|---|
| Message-ID | <20260618120759.374a34cd@medion> |
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