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

Changing the Apt key for jenkins on Ubuntu #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

signorrayan
Copy link

According to the following link from jenkins.io, from March 28, 2023, the URL for the Jenkins apt key changed, resulting in an error when adding the key using Ansible.
https://www.jenkins.io/blog/2023/03/27/repository-signing-keys-changing/

Error:

TASK [add Jenkins apt key] ************************************************************************************************************************************************************************************************
fatal: [jenkins]: FAILED! => {"after": ["8D81803C0EBFCD88", "7EA0A9C3F273FCD8", "843C48A565F8F04B", "3F4A517504A9CD61", "8D81803C0EBFCD88", "7EA0A9C3F273FCD8", "D94AA3F0EFE21092", "871920D1991BC93C"], "before": ["8D81803C0EBFCD88", "7EA0A9C3F273FCD8", "843C48A565F8F04B", "3F4A517504A9CD61", "8D81803C0EBFCD88", "7EA0A9C3F273FCD8", "D94AA3F0EFE21092", "871920D1991BC93C"], "changed": true, "fp": "FCEF32E745F2C3D5", "id": "FCEF32E745F2C3D5", "key_id": "FCEF32E745F2C3D5", "msg": "apt-key did not return an error, but failed to add the key (check that the id is correct and *not* a subkey)", "short_id": "45F2C3D5"}

@signorrayan
Copy link
Author

Additionally, there is an issue with Jenkins' dependency (java) causing it to fail. My solution was to replace the temurin-11-jdk dependency in line 26 with default-jre. The code worked on Ubuntu 22.04 and 20.04. However, it needs to be reviewed by you before it can be implemented.

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

Successfully merging this pull request may close these issues.

1 participant