简体   繁体   English

一个git存储库可以触发多个代码管道是否正常?

[英]Is it normal that one git repository can trigger multiple code pipeline?

Is it normal that one git repository can trigger multiple code pipeline? 一个git存储库可以触发多个代码管道是否正常? Or should git repository and codepipeline be 1-1 mapping? 还是git仓库和codepipeline应该是1-1映射?

It is a quiet common scenario that one repo triggers multiple pipelines. 一个回购触发多个管道是一种安静的常见方案。 Some use cases (non-exhaustive enumeration): 一些用例(非穷举枚举):

  • Different pipelines for master branch und feature branches 主分支和功能分支的不同管道
  • Depending on directory where files are committed different builds may be triggered (eg only build and create and publish a library) 根据提交文件的目录,可能会触发不同的构建(例如,仅构建,创建和发布库)
  • Special case: empty pipeline. 特殊情况:空管道。 For instance if only in a directory with documentation something was changed. 例如,如果仅在包含文档的目录中进行了某些更改。
  • Special build for Quality assurance which aso triggers integration tests, includes static code analysis, or whatever you may think of. 质量保证的特殊构建,也可以触发集成测试,包括静态代码分析或您可能想到的任何内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM