Jenkins 配置 github 插件 与 credentials
“” -> “” -> “” -> “”,在“”字段下,单击下拉框,选择“”。提供你的用户名、私钥及密码码如下:通过 github>>生成。Private Key 生成。
·
添加 github credentials
HTTPS github credentials
ssh github credentials
“Credentials
” -> “System
” -> “Global credentials
” -> “Add Credentials
”,在“kind
”字段下,单击下拉框,选择“SSH Username with private key
”。提供你的用户名、私钥及密码码如下:
Passphrase
通过 github Settings
> Developer settings
> Tokens
生成。
Private Key 生成。
ssh-keygen -t rsa -b 4096
$ cat /root/.ssh/id_rsa
-----BEGIN RSA PRIVATE KEY-----
MIIEwIBAAKCAQEAm/lBmQx4ySwI6POOLyMgpJOIhhmMuJoINZFuhKfAoFOAx51g
QTo3XllsVSQL5vyGez+LZZmRcD3r3nveXDMkTLHaqdNu9qIu3eG27U8KQNmEJnfh
h3++kjRWVeo5mjmQATpfEyzpkcNZcjA9gOIwyV6YSKraYpCOkikpIytVIvq+Bz+y
l10Zb0wIv5YPDv3ZLyGcRo08oBLSv5SnmvH13Udf0I2+9MtCoeAe/LlTMPF64/wE
UWRa0IhC5EycTr1drXDktcTWpWW9xl96NA1p9S+w0UzybV6fJax3OHQatCk6TlR0
2FNn8w/1lg7UepFIEvKXM2KfI7EPaWg3zn4MswIDAQABAoIBAGBYyTekZ5xFEj/r
6yGc/lYLOGM1tyJ1K6sDahSRl0CyNDOaOFIyhu9GJ9A0ExIdXWkWqKIbCace6Oum
8oVbpgmmN59+FuZM6sxu2FOg5oGGm8YzeWH8/BhOMiKiK/Djq9vGVeJ/dMxwsnkB
6YwKrP5G66S/vWTzTM5mlJ2/77hJ2l6dYqZ6LeyNzIpTYbrIE92wKP+X930ADM4L
V0lW1whbIUGgYi1qqyJBwb8PblhYZp7I06L717LL9GSzOspmR3QNMYq2Cu7xl7Ch
x4bvkbYc8We2LbcVVkI/zastP06uag8aQGBPwb0mdDM9K4b/ue/o8/lKS6+H6vCX
DjC4D+ECgYEAy0Xo/9P+jJuuCvSiTw1XNXNc4EOoEEL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