Quantcast
Channel: Happy Coding Journal » how to fix the error…
Viewing all articles
Browse latest Browse all 11

Jenkins, github and Host key verification failed.

$
0
0

I have just switched a Jenkins project from Svn to git (hosted on GitHub). When I wanted to build the project I experienced the following error: Host key verification failed.

The first issue was, that Jenkins didn’t run with the normal user, but it’s own Jenkins user. So I switched to this user

su jenkins

and created an own private/public key using

ssh-keygen

After this I tried to ssh into git

ssh git@github.com

and got a welcome message:

You’ve successfully authenticated, but GitHub does not provide shell access.

After this I tried to clone the repository to the Jenkins machine and got

hudson.plugins.git.GitException: Could not apply tag …

This problem could be fixed by adding git name and email via

git config --global user.email "email@yourdomain.com"
git config --global user.name "Jenkins"

The post Jenkins, github and Host key verification failed. appeared first on Happy Coding Journal.


Viewing all articles
Browse latest Browse all 11

Trending Articles