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, 2019 in Jenkins by Yusuf
• 120 points
82 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, 2019 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
10,533 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, 2019 in Jenkins by Sirajul
• 45,310 points
801 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,910 points
223 views
+1 vote
4 answers
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,900 points
439 views
+1 vote
6 answers

Error: Jenkins Maven Build 137

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

answered May 5, 2019 in Jenkins by Danica
1,595 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,900 points
903 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
• 50,050 points
1,912 views
+1 vote
4 answers

Is there a way to change the Jenkins build number while building a job?

If you have access to the script ...READ MORE

answered May 7, 2019 in Jenkins by Atul
4,921 views
+2 votes
5 answers