I'm installing Jenkins on AWS EC2 CentOS instance. I'm following this tutorial for installation - "https://medium.com/@itsmattburgess/installing-jenkins-on-amazon-linux-16aaa02c369c". I'm getting the below error while installation.
Downloading packages: warning: /var/cache/yum/x86_64/7/jenkins/packages/jenkins-2.232-1.1.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 45f2c3d5: NOKEY:00 ETA Public key for jenkins-2.232-1.1.noarch.rpm is not installed jenkins-2.232-1.1.noarch.rpm | 63 MB 00:01:49
Where am i getting wrong. Can someone please help.
Correct public key URL can be found on Jenkins Redhat Packages page. Just run the command below to import it: 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.
Delete your EC2 instance Jenkins is an open-source automation server that integrates with a number of AWS Services, such as AWS CodeCommit, AWS CodeDeploy, Amazon EC2 Spot, and Amazon EC2 Fleet. You can use Amazon Elastic Compute Cloud (Amazon EC2) to deploy a Jenkins application on AWS in a matter of minutes.
1 On the left-hand side, click Manage Jenkins, and then click Manage Plugins. 2 Click on the Available tab, and then enter Amazon EC2 plugin at the top right. 3 Select the checkbox next to Amazon EC2 plugin, and then click Install without restart.
1 Step 1: Go to manage Jenkins --> Manage Plugins and click the advanced tab. Scroll down and towards the end of the page,... 2 Step 2: Restart the Jenkins server. More ...
Correct public key URL can be found on Jenkins Redhat Packages page. Just run the command below to import it:
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With