CCNET - 需要构建任务吗?多个存储库,每个项目一个 CCNET 源代码部分
CCNET 问题 - 场景如下:
- 我有 10 名开发人员使用 GIT 作为版本控制对 Sitecore 安装进行本地开发。当完成他们的功能/修复后,他们会推送到集成存储库。
- 我已经为 Sitecore 项目设置了 CCNET,该项目指向远程集成代表和本地实时质量保证代码库。 CCNET 找到我的开发人员对集成存储库所做的提交,然后更新 qa 代码库存储库。
- 我还有其他几个由 CCNET 管理的 .Net 类库项目,编译时其输出指向 Sitecore bin 目录。
- Sitecore 安装仅仅是构建的结果,没有可编译的方面。它是一个 Web 产品,拥有自己的 API,并且能够集成我们创建的自定义 dll 来自定义产品。
问题:
CCNET 构建任务是否需要作为执行其他活动(例如 nUnit 或 robocopy)的条件? (我问这个的原因是因为“构建”本身用于编译应用程序并生成输出,而我们想要构建的唯一原因是确保所有依赖项都存在并且我们可以跳转到单元测试...).
- 的开发人员没有指向像集成这样的集中式代表,当配置文档只允许每个项目一个 GIT 源代码控制部分时,CCNET 如何知道他们所有的远程 GIT 存储库在哪里?
每个项目当我配置 GIT vc 规范时,它会要求需要静态保存到文档的分支。 CCNET 是否能够动态接受不同的分支?
CCNET questions - Here's the scenario:
- I've got 10 developers doing local development to a Sitecore installation w/GIT as version control. When done with their feature/fix they push to an integration repository.
- I've got CCNET setup for the Sitecore project that points to the remote Integration rep and the local live qa code base. CCNET finds the commits that my developers have made to integration repository and then updates the qa code base repository.
- I also have a couple other .Net class lib projects that are managed by CCNET, compiled with their output pointed to the Sitecore bin dir.
- The Sitecore installation is merely a result of a build with no compilable aspects. Its a web product with it's own API as well as the ability to integrate custom dll that we create to customize the product.
Questions:
Is CCNET build task required as a condition to execute other activities such as nUnit or robocopy? (the reason I ask this is because a "build" is natively used to compile an app and generate output, whereas, the only reason why we'd want to build is to make sure all dependencies are there and we can jump to unit testing...).
If my developers are NOT pointing to a centralized rep like integration, how would CCNET know where all of their remote GIT repositories are when the config doc only allows one GIT source control section per project?
Per project when I configure the GIT vc specs it asks for the branch that needs to be statically saved to the doc. Does CCNET have the ability to accept different branches dynamically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的项目中不需要有“实际构建” - 它可以包含
tasks
元素内的任何类型的任务。我有几个项目,在删除一些不应该发布的文件后,仅将文件从存储库复制到 FTP 服务器。我没有使用 GIT 的经验,但如果您使用 多源控制块。
您可以使用动态参数,它允许用户设置他们的触发构建时的值。
There's no need to have an "actual build" in your project - it could consist of any type of tasks inside the
tasks
element. I have a couple of projects which only copy the files from the repository to an FTP server after deleting some files which shouldn't be published.I have no experience with GIT but you have a possibility to define multiple source control blocks of any type if you use the multi source control block.
You could use dynamic parameters which allow the user to set their values when triggering the build.