Skip to content

Mock pre-main-jh as default branch

Baodong请求将jh/ci/default-branch-refs合并到main-jh

Related issue: https://jihulab.com/gitlab-cn/gitlab/-/issues/2715

What does this MR do and why?

scheduled main-jh pre-main-jh
pipeline https://jihulab.com/gitlab-cn/gitlab/-/pipelines/1468977 https://jihulab.com/gitlab-cn/gitlab/-/pipelines/1469208
job count 206 258

Mock pre-main-jh as default branch to trigger full pipeline jobs when it is updated.

Rules

  1. if commit ref name is default branch (main-jh) and not a MR, return true;
  2. if $FORCE_GITLAB_CI is set and not a MR, return true;
Before After
rules rule1 rule1 or rule2

Flow

  1. Merge main-jh and master to pre-main-jh, on code sync https://jihulab.com/gitlab-cn/code-sync/-/pipelines/1472751
  2. Auto pipeline on pre-main-jh branch, on gitlab https://jihulab.com/gitlab-cn/gitlab/-/pipelines/1472782

Screenshots or screen recordings

non-ui

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Baodong 编辑于

合并请求报告

加载中