詹金斯蓝海与TFS 2013& GIT-使用http/https存储库不支持保存管道.请改用SSH [英] Jenkins Blue Ocean with TFS 2013 & GIT - Saving Pipelines is unsupported using http/https repositories. Please use SSH instead

查看:133
本文介绍了詹金斯蓝海与TFS 2013& GIT-使用http/https存储库不支持保存管道.请改用SSH的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近使用Blue Ocean插件设置了Jenkins,并使用我们在TFS 2013上托管的许多Git存储库来构建它.

I recently set up Jenkins with the Blue Ocean plugin and have it building off a number of Git repos hosted on our TFS 2013.

我更新了插件和Jenkins,以便它们运行最新版本.

I updated the plugins and Jenkins so they are running the latest version.

当我为新的Git存储库添加新管道时,现在说的是:

When I went to add a new pipeline for a new Git repo it is now saying:

使用http/https存储库不支持警告-保存管道.请改用SSH."

"Warning - Saving Pipelines is unsupported using http/https repositories. Please use SSH instead."

当我尝试添加管道时,它会告诉我存储库URL-请输入有效的URL.".这是TFS用来克隆仓库的URL,当我将其加载到浏览器中时,我可以查看仓库的内容,因此我确定这是正确的URL.

When I try to add the pipeline it tells me "Repository URL - Please enter a valid URL.". This is the URL that TFS is giving me to clone the Repo and when I load it in the browser I can view the repo contents so I'm sure this is the correct URL.

关于如何解决此问题的任何想法?我希望能够运行最新版本的Jenkins和插件,并且不想降级.

Any ideas on how to get around this? I'd like to be able to run latest version of Jenkins and plugins and don't want to downgrade.

谢谢

推荐答案

由于我使用的是github企业版,所以我无法在所有情况下都讲.但是对于我相信的github,这些步骤应该是相同的:

I can't speak for all cases because I'm using github enterprise. But these steps should be the same for github I believe:

  • 导航到您的github存储库,然后单击克隆"或下载"按钮.
  • 包含HTTPS克隆链接的下拉菜单中还有一个用于SSH的按钮 单击时将为您提供ssh网址以用于您的 尝试做.
  • 在蓝色海洋的URL字段中,输入"ssh://",不带引号,后跟
    您从github复制的ssh url,它应该看起来 像这样的东西:

  • Navigate to your github repo and click the clone or download button.
  • The dropdown containing the HTTPS clone link also has a button for SSH which when clicked will give you the ssh url to use for what your trying to do.
  • In the URL field in blue ocean put in "ssh://" without quotes followed by the
    ssh url you copied from github and it should look something like this:

ssh://user @ server:/GitRepo/project.git.

ssh://user@server:/GitRepo/project.git.

接下来转到您的github实例进行个人资料设置.

Next go to your github instance to your profile settings.

粘贴Jenkins在先前步骤中提供的SSH密钥信息
然后点击添加.

Paste in the SSH key information that Jenkins provided in the previous steps
and click add.

完成后,回到蓝色的海洋,然后单击创建".而已.

Once Done go back over to blue ocean and click create. That's it.

故障排除1.如果遇到错误,则可能是ssh密钥仍在应用,在这种情况下,只需刷新您的蓝海屏幕并逐步执行创建步骤即可,而无需将ssh密钥添加到github,您已经做到了,它应该可以工作.

Troubleshooting 1. If you run into an error it may be that the ssh key is still applying in which case just refresh your blue ocean screen and walk through the steps to create it again ignoring the adding of the ssh key to github since you already did that, and it should work.

故障排除2.确保回购分支中没有现有的jenkins文件,而您为此创建了一条蓝海管道.

Troubleshooting 2. Ensure that there isn't an existing jenkinsfile in a branch of the repo that your creating a blue ocean pipeline for.

这篇关于詹金斯蓝海与TFS 2013& GIT-使用http/https存储库不支持保存管道.请改用SSH的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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