问题
I am new to Jenkins, I am trying to create a Jenkins job using web client. It shows following error:
Failed to connect to repository : Command "git ls-remote -h https://user.name@atlstash.corp.bayadv/scm/qa/qa-auto-framework-selenium.git HEAD" returned status code 128: stdout: stderr: error: while accessing https://user.name@atlstash.corp.bayadv/scm/qa/qa-auto-framework-selenium.git/info/refs fatal: HTTP request failed
My STASH URL : https://user.name@atlstash.corp.bayadv/scm/qa/qa-auto-framework-selenium.git
I tried executing the same command on command prompt, its working fine. Had to fire following command before that: export GIT_SSL_NO_VERIFY=true
.
My user has push/pull access right.
I have seen some using below URL, and I am confused when to use ssh tag. ssh://git@atlstash.corp.cmz/icc/adapter-derivation-individual.git
How can I resolve this issue?
回答1:
clone a Git repository over SSH, you can specify ssh:// URL like this:
$ git clone ssh://user@server/project.git
Or you can use the shorter scp-like syntax for the SSH protocol:
$ git clone user@server:project.git
来源:https://stackoverflow.com/questions/37802507/error-while-creating-new-jenkins-job-failed-to-connect-to-repository-status-c