本文介绍了关于GitHub和VSO集成的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

     我一直在评估VSO以满足我们的组织需求。  目前我们使用TFS 2012. 我们的组织希望迁移到GitHub以获取源存储库。  我们还希望使用围绕VS和
TFS的所有工具,例如代码审查,将变更集(拉取请求)与工作项相关联等等。我了解VSO可以为GitHub存储库提供CI功能。   VSO可以像使用VSO托管的Git
实例一样与GitHub源代码库集成吗?据推测,两者都可以使用相同的Git Api。  这对我们来说是理想的解决方案。  它允许外部协作者在熟悉的OSS模型中为代码库做出贡献,并允许我们的组织继续使用
来支持TFS的企业工作流程(Sprint规划,任务跟踪和分配,构建,部署,测试,CI,BVT等。)

     I've been evaluating VSO for our organizational needs.  Currently we use TFS 2012.  Our organization would like to move to GitHub for our source repository.  We would also still like to use all the tooling around VS and TFS like code reviews, associating changesets ( pull requests ) with work items, etc.  I understand that VSO can provide CI functionality for GitHub repositories.  Can VSO integrate with GitHub source repository like it does with the VSO hosted Git instance? Presumably the same Git Api's could be used for both.   That would be the ideal solution for us.  It would allow external collaborators to contribute to the code base in a familiar OSS model and it would allow our organization to continue to support enterprise workflows with TFS ( Sprint planning, task tracking and assignment, build, deploy, test, CI, BVT's, etc.).

谢谢,

John Sheppard

John Sheppard

疾病模型研究所

推荐答案

PART A

您可以将Github与CI / CD版本集成。

You can integrate Github with your CI/CD builds.

在Visual Studio Online中,导航到您的某个项目,然后:

In Visual Studio Online, navigate to one of your projects and then:

1-单击屏幕右上角的设置图标

1- Click on the settings icon on the top right corner of your screen

2-转到服务选项卡

3-为Git创建新的服务端点hub

3- Create a new service endpoint for Git hub

4-在github中创建一个访问令牌:  https://help.github.com/articles/creating-an-access-token-for-command-line-use作为个人访问令牌并为其分配正确的权限

4- Create an access token in github: https://help.github.com/articles/creating-an-access-token-for-command-line-use as a personal access token and assign the right permissions for it

5-返回VSO,添加创建的令牌并创建连接名称

5- Back in VSO, add the token created and create a connection name

完成此设置后,您可以使用Github仓库在VSO中创建新的构建定义。

Once you have this set up, you can create your new build definitions in VSO using your Github repo.

B部分

在新团队项目中默认使用Repo方面,默认情况下只能使用Git和TFVC,但有一些方法可以将GitHub repo克隆到你的本地GIT,这可能是导入你的Github回购的一种解决方法。

In terms of using a Repo by default in your new team project, you can only use Git and TFVC by default, but there are some ways of cloning the GitHub repo into your local GIT, that could be a workaround for importing your Github repos.

你在这里有一个很好的waltkthrough:  http://blog.nwcadence.com/migrate-repository-github -visual-studio-online /

You have a good waltkthrough here: http://blog.nwcadence.com/migrate-repository-github-visual-studio-online/

PART C

您是否尝试过Zappier?  https://zapier.com/zapbook/github/ visual-studio-online /

Have you try Zappier? https://zapier.com/zapbook/github/visual-studio-online/

我希望它有所帮助!


这篇关于关于GitHub和VSO集成的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 10:40