Error while creating new Jenkins job: Failed to connect to repository : status code 128

橙三吉。 提交于 2019-12-25 07:30:02

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!