Getting below error on Jenkins while creating a Maven Build Job

0 votes

Can you please help on below error? 

Getting below error on Jenkins while creating a Maven Build Job

Failed to connect to repository : Command "git ls-remote -h git@github.com:lokhandwalayusuf/simple_devops_project-3.git HEAD" returned status code 128:
stdout: 
stderr: Host key verification failed. 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists

Aug 30 in Jenkins by Yusuf
• 120 points
50 views

1 answer to this question.

0 votes

When you are using ssh to connect, every host has a key. You might be facing this error if this host key has been changed. Make sure you have the updated key.

ssh-keygen -R domain.com

Use the above command to get the latest host key.

answered Sep 3 by Hari

Related Questions In Jenkins

+2 votes
3 answers

Permission denied error while running a simple job in Jenkins

Hey @Hannah, try changing the permissions using ...READ MORE

answered Oct 25, 2018 in Jenkins by krishti
8,370 views
0 votes
2 answers

How to auto build a job in jenkins if there is any change in code on Github repository?

To automatically run build on code commit, follow ...READ MORE

answered Jul 31 in Jenkins by Sirajul
• 38,820 points
283 views
0 votes
1 answer

running a Jenkins job on multiple virtual servers.

Your goals can be achieved by using ...READ MORE

answered May 25, 2018 in Jenkins by shubham
• 6,890 points
183 views
0 votes
1 answer

I’m facing a login error when I try to run Jenkins on Docker. How do I solve this?

You have to open the /var/log/jenkins/jenkins.log file to ...READ MORE

answered Jul 24, 2018 in Jenkins by Sophie may
• 9,870 points
326 views
+1 vote
6 answers

Error: Jenkins Maven Build 137

I disagree with @Pam's answer. The problem ...READ MORE

answered May 5 in Jenkins by Danica
1,345 views
+1 vote
1 answer

Error: Maven runs with the wrong JDK on Jenkins

Perform the following steps: 1) Navigate to Manage ...READ MORE

answered Aug 8, 2018 in Jenkins by Sophie may
• 9,870 points
694 views
0 votes
1 answer

Set a Jenkins environment variable based on a job parameter

So if you give choice parameter the ...READ MORE

answered Aug 14, 2018 in Jenkins by Kalgi
• 42,510 points
1,490 views
+1 vote
4 answers
+2 votes
5 answers