-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
With the update of the RSA key for Github all our pipelines have stopped working and all attempts to update the known_hosts files have failed. All plugins are at most recent versions.
We are using a jenkins environment running on a kubernetes server and using the alpine-jdk11 image as an agent. When the check stage runs:
steps
{ git credentialsId: 'github', url: 'git@github.com:xxxxx' }We get an error (with a bunch of other text)
The RSA host key for github.com has changed,
And the suggestion to fix it by editing a file at /home/jenkins/agent/workspace/1_Deploy_To_Test_On_Commit@tmp/jenkins-gitclient-known_hosts7408455601
To fix this I have tried:
1) On the master node fixing the ~/.ssh/known_hosts file when logged in as the jenkins user. But that does not help nor does removing the file completely.
2) Attempts to find the file referenced above fail.
3) Cloning does work when you do something like this
sshagent(['github'])
{ sh ''' [ -d ~/.ssh ] || mkdir ~/.ssh && chmod 0700 ~/.ssh ssh-keyscan -H github.com >> ~/.ssh/known_hosts more ~/.ssh/known_hosts ''' sh('git clone git@github.com:XXX $(pwd)') }
Feel like a have a stale cache somewhere, but no number or restarts or attempts to fix it have seemed to help. Is this a bug in the plugin or something in our setup?