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 HEAD" returned status code 128:
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 31, 2019 in Jenkins by Yusuf
• 120 points

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

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
+1 vote
3 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
• 59,070 points
+1 vote
2 answers

I'm unable to build my code in Jenkins. Getting the error shown below.

Hi, @Ashutosh, Do you have a pom.xml in ...READ MORE

answered Aug 3, 2020 in Jenkins by Gitika
• 65,950 points
0 votes
1 answer

Error " unable to parse POM" while build on Jenkins

Maven tries to read /root/.jenkins/workspace/test tools as ...READ MORE

answered Oct 8, 2020 in Jenkins by Blackbuild
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
• 7,320 points
+2 votes
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
• 10,550 points
+1 vote
7 answers

Error: Jenkins Maven Build 137

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

answered May 6, 2019 in Jenkins by Danica
+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
+2 votes
5 answers