1

IBM Bluemix DevOps ToolChain 允许源代码存储库只有 github 和 IBM 版本的 gitlab。我的 repo 在公共 gitlab 云中,我不打算将它移到 IBM 的 gitlab 云中。如何设置我的工具链?

4

2 回答 2

1

更新:现在可以将 gitlab.com 存储库(或来自公共 Internet 上任何其他 GitLab 服务器的存储库)添加到 Bluemix DevOps 工具链。Bluemix 文档中提供了更多详细信息。

原始(过时)答案: 目前无法将 gitlab.com 或其他公共 GitLab 服务器上的存储库添加到 IBM Bluemix DevOps 工具链。然而,这种能力正在积极开发中。

在该功能可用之前,您可以通过将存储库复制到受支持的 Git 提供程序之一来继续。在https://help.github.com/articles/duplicating-a-repository/上有复制存储库的说明。简而言之:

git clone --bare https://github.com/exampleuser/old-repository.git
cd old-repository.git
git push --mirror https://github.com/exampleuser/new-repository.git

该示例使用 github.com,但这种方法适用于任何 git 存储库。

于 2017-07-19T13:25:12.320 回答
0

我认为这是最近添加的,您可以在将工具添加到工具链时选择它。还有一篇关于它的博客文章https://serifandsemaphore.io/build-a-serverless-api-in-seconds-with-go-c504398d86f6

于 2017-08-24T17:16:20.887 回答