I'm unable to connect Jenkins on a github repo.
When I specify the repository URL, Jenkins returns the following error message:
Failed to connect to repository : Failed to connect to //Zulaikha12/git-test.git (status = 407)
This happens when you create the ssh files with the root user access. This makes root the owner of the files.
The solution is to just change the ownership to the Jenkins user.
chown jenkins id_rsa.pub
chown jenkins id_rsa
Jenkins runs as another user, not as your ordinary login. So, do as this to solve the ssh problem:
Log on as jenkins su jenkins (you may first have to do sudo passwd jenkins to be able to set the password for jenkins. I couldn't find the default...)
Generate ssh key pair: ssh-keygen
Copy the public key (id_rsa.pub) to your github account (or wherever)
Clone the repo as jenkins in order to have the host added to jenkins known_hosts which is neccessary to do. Now you can remove the cloned repo again if you wish.
There may be several reasons behind this ...READ MORE
I had the same error. I was connected ...READ MORE
To begin with, the best possible way ...READ MORE
This indicates that Maven uses Java 1.8 ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
It can work if you try to put ...READ MORE
When you use docker-compose down, all the ...READ MORE
Please check the following solution::
1. Switch ...READ MORE
This is how I resolved this issue:
# ...READ MORE
Already have an account? Sign in.