Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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 

enter image description here

Where am i getting wrong. Can someone please help.

like image 444
Surya Dilip I Avatar asked Apr 21 '20 13:04

Surya Dilip I


People also ask

How to import proper public key URL for Jenkins installation?

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.

Does Jenkins work with AWS codedeploy?

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.

How to install Amazon EC2 in Jenkins without restart?

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.

How to enable Jenkins plugins in Jenkins?

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 ...


2 Answers

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.

like image 149
Oleksandr Shmyrko Avatar answered Sep 19 '22 04:09

Oleksandr Shmyrko


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.

like image 36
bsplosion Avatar answered Sep 20 '22 04:09

bsplosion