Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You need to fix jenkins setup script #103

Open
OdedViner opened this issue Apr 22, 2023 · 0 comments
Open

You need to fix jenkins setup script #103

OdedViner opened this issue Apr 22, 2023 · 0 comments

Comments

@OdedViner
Copy link

OdedViner commented Apr 22, 2023

https://github.com/devopshydclub/vprofile-project/blob/ci-jenkins/userdata/jenkins-setup.sh

https://www.jenkins.io/blog/2023/03/27/repository-signing-keys-changing/

Debian/Ubuntu LTS release
$ curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \
  /usr/share/keyrings/jenkins-keyring.asc > /dev/null
$ echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
  https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
  /etc/apt/sources.list.d/jenkins.list > /dev/null

Without fix:

root@ip-ABC:~# sh jenkins-setup.sh 
Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease                          
Hit:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease                        
Ign:4 https://pkg.jenkins.io/debian-stable binary/ InRelease                                          
Get:5 https://pkg.jenkins.io/debian-stable binary/ Release [2044 B]          
Get:6 https://pkg.jenkins.io/debian-stable binary/ Release.gpg [833 B]           
Hit:7 http://security.ubuntu.com/ubuntu focal-security InRelease                    
Ign:6 https://pkg.jenkins.io/debian-stable binary/ Release.gpg
Reading package lists... Done
W: GPG error: https://pkg.jenkins.io/debian-stable binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5BA31D57EF5975CA
E: The repository 'https://pkg.jenkins.io/debian-stable binary/ Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant