是否有 bitbucket.org 的 CI 服务允许在 VCS 文件中管理构建命令?
Is there a CI service for bitbucket.org which allow managing build commands in a VCS file?
因为 travis-ci.org 不支持 bitbucket.org 我需要另一个 CI 服务来支持它并允许在 VCS 文件中管理构建命令(比如 .travis.yml
在特拉维斯)。
到目前为止,我相当烦人的研究结果是:
- semaphoreci.com:即使刷新项目列表也没有列出分支项目
- app.shippable.com:同时注册 github.com 和 bitbucket.org 无效
- codeship.com: 不支持作为“'root'”用户的 运行 命令((https://codeship.com/documentation/faq/root-level-access/))
- www.snap-ci.com:不支持 bitbucket.org((http://www.slant.co/topics/186/~hosted-continuous-integration-services))
我不明白为什么人们不想在 VCS 中共享 CI 服务构建命令 - 在我看来,如果没有这样的功能,良好协作的可能性很小。即使在 VCS 中添加脚本文件,它仍然需要在 CI 服务中设置,这似乎是一个不必要的步骤。
Semaphore CI 用户可以按照 documentation page 上的这些步骤将项目的分支添加到他的 Semaphore 帐户。此外,Semaphore 正在构建分叉拉取请求,这些构建是可见的。
几个月前 Bitbucket 推出 Pipelines。引用自 link:
Continuous delivery is now seamlessly integrated into your Bitbucket Cloud repositories.
您可以在免费计划中使用它,但明年他们会将免费计划的构建时间从 500 分钟减少到 50 分钟as told in this link。
拥有 BitBucket 的公司还为 CI 开发了一款名为 Bamboo 的产品。尽管大多数人应该使用任何提供 webhook 的 git。
此外,CircleCI 正在支持 Bitbucket。它有 1500 构建分钟的免费计划。它可以通过 BB 中的 commit 或 tag 触发。 https://circleci.com/
根据这个blog,可以使用Travis-CI for Bitbucket:
克隆 github 存储库:
git clone https://github.com/{github_user}/{github_repository}
cd {github_repository}
添加子模块 bitbucket 存储库:
git submodule add https://bitbucket.org/{bitbucket_user}/{bitbucket_repository}
将 .travis.yml 添加到根目录:
git:
submodules:
false
before_install:
- echo -e "machine bitbucket.org\n login $BITBUCKET_USER_NAME\n password $BITBUCKET_USER_PASSWORD" >~/.netrc
- git submodule update --init --recursive
$BITBUCKET_USER_NAME is bitbucket username
$BITBUCKET_USER_PASSWORD is app password
打开 https://travis-ci.org/{github_user}/{github_repository}
(现在)还有一个选项可以将 GitLab 用作 CI/CD 服务器,用于托管在 Bitbucket 上的存储库。
在此处查看文档:on GitLab site
因为 travis-ci.org 不支持 bitbucket.org 我需要另一个 CI 服务来支持它并允许在 VCS 文件中管理构建命令(比如 .travis.yml
在特拉维斯)。
到目前为止,我相当烦人的研究结果是:
- semaphoreci.com:即使刷新项目列表也没有列出分支项目
- app.shippable.com:同时注册 github.com 和 bitbucket.org 无效
- codeship.com: 不支持作为“'root'”用户的 运行 命令((https://codeship.com/documentation/faq/root-level-access/))
- www.snap-ci.com:不支持 bitbucket.org((http://www.slant.co/topics/186/~hosted-continuous-integration-services))
我不明白为什么人们不想在 VCS 中共享 CI 服务构建命令 - 在我看来,如果没有这样的功能,良好协作的可能性很小。即使在 VCS 中添加脚本文件,它仍然需要在 CI 服务中设置,这似乎是一个不必要的步骤。
Semaphore CI 用户可以按照 documentation page 上的这些步骤将项目的分支添加到他的 Semaphore 帐户。此外,Semaphore 正在构建分叉拉取请求,这些构建是可见的。
几个月前 Bitbucket 推出 Pipelines。引用自 link:
Continuous delivery is now seamlessly integrated into your Bitbucket Cloud repositories.
您可以在免费计划中使用它,但明年他们会将免费计划的构建时间从 500 分钟减少到 50 分钟as told in this link。
拥有 BitBucket 的公司还为 CI 开发了一款名为 Bamboo 的产品。尽管大多数人应该使用任何提供 webhook 的 git。
此外,CircleCI 正在支持 Bitbucket。它有 1500 构建分钟的免费计划。它可以通过 BB 中的 commit 或 tag 触发。 https://circleci.com/
根据这个blog,可以使用Travis-CI for Bitbucket:
克隆 github 存储库:
git clone https://github.com/{github_user}/{github_repository}
cd {github_repository}
添加子模块 bitbucket 存储库:
git submodule add https://bitbucket.org/{bitbucket_user}/{bitbucket_repository}
将 .travis.yml 添加到根目录:
git:
submodules:
false
before_install:
- echo -e "machine bitbucket.org\n login $BITBUCKET_USER_NAME\n password $BITBUCKET_USER_PASSWORD" >~/.netrc
- git submodule update --init --recursive
$BITBUCKET_USER_NAME is bitbucket username
$BITBUCKET_USER_PASSWORD is app password
打开 https://travis-ci.org/{github_user}/{github_repository}
(现在)还有一个选项可以将 GitLab 用作 CI/CD 服务器,用于托管在 Bitbucket 上的存储库。
在此处查看文档:on GitLab site