Am Dienstag, den 30.03.2021, 05:59 +0000 schrieb 'Dirk Heinrichs' via Jenkins Users: > Am Montag, den 29.03.2021, 11:07 -0700 schrieb [email protected]: > > > Please make sure you have the correct access rights > > and the repository exists. > > Oh, yes, forgot that: On the host(s) that does/do the cloning, you > need to either > connect to [email protected] once per SSH on the console and as the user > who runs Jenkins, to add the GH host key to that users known_hosts > file, oradd a host block to that users ~/.ssh/config file like: > host github > Hostname github.com > User git > IdentityFile ~/.ssh/my_github_key > ServerAliveInterval 15 > StrictHostKeyChecking no > > In the second case, you also don't need to store the credentials in > Jenkins, since you can use the alias "github" directly in your URLs, > like "github:path/to/repo" (instead of "[email protected]:..."). If > you're reluctant to skip host key verification, you can also omit the > last line and combine the two methods.
If you are running many Jenkins agents you can of course do the first
step once on one of them and then copy the GH host key into either the
user's ~/.ssh/.known_hosts or the global /etc/ssh/ssh_known_hosts file
on the other ones.
Bye...
Dirk
--
Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Phone: +49 2226 15966 18
Email: [email protected]
Website: www.recommind.de
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan,
Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are
not the intended recipient (or have received this e-mail in error) please
notify the sender immediately and destroy this e-mail. Any unauthorized
copying, disclosure or distribution of the material in this e-mail is strictly
forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht
gestattet.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/555dfc6a05436febb4f16d0a5d81b7a1c4c3f928.camel%40opentext.com.
signature.asc
Description: This is a digitally signed message part
