ERROR: cannot verify pkg.jenkins.io’s certificate, issued by ‘/C=US/O=Let’s Encrypt/CN=R3’:
Issued certificate has expired.
当出现类似报错时,一般时镜像源中签发证书过期,重新添加证书及Jenkins镜像源。
sudo yum install -y ca-certificates
添加Jenkins镜像源
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat-stable/jenkins.repo
导入公钥
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
完成后yum install jenkins即可
如果常规镜像源或者依赖出现问题,镜像拉取失败,考虑清空缓存,更换网络源,重新拉取依赖。