如何在Bluemix DevOps ToolChain中设置gitlab集成?

问题描述:

IBM Bluemix DevOps ToolChain允许源代码存储库仅为github和IBM版本gitlab。我的回购是在公共gitlab云中,我不打算将它转移到IBM的gitlab云。我如何设置我的工具链?如何在Bluemix DevOps ToolChain中设置gitlab集成?

更新:现在可以将gitlab.com存储库(或来自公共互联网上任何其他GitLab服务器的存储库)添加到Bluemix DevOps Toolchains。 Bluemix Documentation提供更多详细信息。

原件(过时)答案: 它目前还无法对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存储库。

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