I'm getting error "Public key for jenkins-2.232-1.1.noarch.rpm is not installed" while installing AWS on Jenkins [closed] I'm getting error "Public key for jenkins-2.232-1.1.noarch.rpm is not installed" while installing AWS on Jenkins [closed] jenkins jenkins

I'm getting error "Public key for jenkins-2.232-1.1.noarch.rpm is not installed" while installing AWS on Jenkins [closed]


Correct public key URL can be found on Jenkins Redhat Packages page.Just run the command below to import it:

  • Long Term Support release:
    sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
  • Weekly release:
    sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

Here is an issue with details WEBSITE-741.

Updated: Jenkins installation handbook was updated with instructions on how to import proper public keys for LTS and weekly release.
More details: Jenkins 2.235.3: New Linux Repository Signing Keys.


Updated: They've updated their key URL to the following - import this key as part of the setup instead and the yum install call should function without issues and not require disabling the gpg check:

https://pkg.jenkins.io/redhat/jenkins.io.key


Original answer: I've also been hitting this. The team has apparently updated their key, but haven't updated the docs or published the new public key component and the one located at http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key isn't valid any longer. For now you can run a yum install with GPG check disabled just to get past the initial install Jenkins:

yum install jenkins --nogpgcheck

Once they've published the new public key, you'll want to import it with the rpm --import [url] call per usual so that yum update will work as expected.


Issue got resolved. Instead of the command "sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo" i used "sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo"and it was working. Than's every for viewing my question and taking time to answer it.