Jenkins- SSL certificate problem: self signed certificate

Jenkins- SSL certificate problem: self signed certificate

使用 SSH 不使用 https

1. 终端未出现id_rsa.pub 或 id_dsa.pub文件,表示该电脑还没有配置SSH Key
ssh-keygen -t rsa -C "用户名@邮箱" 
2. 生成id_rsa:私钥 和 id_rsa.pub 公钥
cat id_rsa.pub
3. 进入gitlab

点击头像->setting->SSH key->add key:公钥

4. jenkins 配置

凭据管理->添加凭据->将2中的私钥拷入
Jenkins- SSL certificate problem: self signed certificate_第1张图片

你可能感兴趣的:(Jenkins,jenkins)