Gated check-ins / pre-tested commits for Git?

后端 未结 6 1778
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 12:50

I\'m looking at migrating from TFS (Team Foundation Server) to Git, but can\'t find anything matching TFS\' support for gated check-ins (also called pre-tested or delayed co

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 13:23

    Check out Verigreen - A lightweight, server side gated check-in system. It verifies each commit before it finds its way into the branches the system protects. Verigreen will not allow any failed CI commit to break the integration, release, or any branch that need be protected. Moreover – it's a free, open-source project.

    How it works: Verigreen intercepts check-ins and runs verification in an ad-hoc branch - so that in case of failed commit, only the relevant developer is affected.

    • A pre-receive hook intercepts and creates an ad-hoc branch of the code.
    • Verification is run via a Jenkins job. The verification job content is fully configurable.
    • The verified code is merged back into the protected branch whereas a failed commit is blocked with a notification sent to the developer.

    Decisions are made based on the following flow:

    For more information, please see the wiki or Verigreen.io site

提交回复
热议问题