Hi people, I’m new to go.cd and I’m stuck with creating a pipeline for GitLab either with ssh keys or through http link.
I installed go.cd and GitLab on the same ubuntu 14 server and created a private repo called “test" in gitlab.
I found instructions
Then there are two ways I can point go.cd to use my gitlab repo
When I create a pipeline on the second step (materials)
I set material type - git
When I use http link to my project and put in url box and click check connection I get error like this:
Repository ... not found! : Error performing command: --- Command --- git ls-remote ... --- Environment --- {} --- INPUT ---- --OUTPUT --- --- ERROR --- ERROR: fatal: could not read Username for ... No such device or address ---
looks ok (?), because repo is private and I have to provide username and pass somehow
When I use ssh link and hit test connection I get:
Repository ssh://git@...:1299/user/test.git not found! : Error performing command: --- Command --- git ls-remote ssh://git@...:1299/user/test.git --- Environment --- {} --- INPUT ---- --OUTPUT --- --- ERROR --- ERROR: Host key verification failed. ERROR: fatal: Could not read from remote repository. ERROR: ERROR: Please make sure you have the correct access rights ERROR: and the repository exists. ---
When I manually run ls-remote from go user:
go@coolserver:/root$ git ls-remote ssh://git@reallycoolserver:customportforssh/cooluser/test.git
I get:
fatal: failed to stat '.': Permission denied
How can I fix it or make a workaround?
There is one more thing I do not understand. Why do I need to install agents? What are they for?