创建新Jenkins作业时出错:无法连接到存储库:状态码128 [英] Error while creating new Jenkins job: Failed to connect to repository : status code 128

查看:2149
本文介绍了创建新Jenkins作业时出错:无法连接到存储库:状态码128的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Jenkins的新手,我正在尝试使用Web客户端创建一个jenkins作业。它显示以下错误:无法连接到存储库:命令git ls-remote -h
请指导如何解决此问题。

解决方案

通过SSH克隆Git存储库,您可以指定ssh://这样的URL:



$ git clone ssh://user@server/project.git



或者你可以使用较短的类似于scp的语法来实现SSH协议:

$ git clone user @ server:project.git


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 cmd before that: export GIT_SSL_NO_VERIFY=true.

My user has push/pull access right.

I have seen some using below URL. Confused when to use ssh tag. ssh://git@atlstash.corp.cmz/icc/adapter-derivation-individual.git

Please guide how can I resolve this issue.

解决方案

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

这篇关于创建新Jenkins作业时出错:无法连接到存储库:状态码128的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆