Overview of the verification flows
The following diagram illustrates the proposed review verification and merge verification flows
- Developer pushes a commit to Gerrit
- Gerrit triggers review verification job in Jenkins
- The template for review verification job is in ci-management/jjb/integration/integration-templates-csit.yaml and currently named as "{project-name}-unified-review-{stream}-PoC"
- The trigger is "gerrit-trigger-patch-submitted" and it is activated by any file change in the project
- Review verification job triggers docker build job
- The value of BUILD_ID Jenkins variable is passed to the docker build job as UNIQUE_DOCKER_TAG (along with PROJECT, BRANCH and GERRIT_REFSPEC)
- The triggered build is defined as "{project-name}-{stream}-{artifact-type}-docker-snapshot-PoC" in the review verification job template
- The build is blocking and fails the entire review verification job before moving it moves on to the next step on failure
- The only currently existing docker build job template that follows the expected naming pattern is defined in ci-management/jjb/global-templates-golang.yaml as "{project-name}-{stream}-golang-docker-snapshot-PoC"