Execute pipelines on `main` branch
gitlab-com/gl-infra/delivery#1357 (closed) plans to rename gitlab-org/gitlab
default branch from master
to main
. The timeline is still in the works, tentative date could be after %14.0
Broad plan to ease the master
to main
transition is to do it gradually:
- First, we mirror commits from
master
tomain
- Then, we change the default branch to
main
, and, - We flip the mirror back, commits will be mirrored from
main
tomaster
Note: There are more details involved in the default branch renaming, see gitlab-com/gl-infra/delivery#1357 (closed) for further details.
For this transition to work, pipelines need to be executed on main
branch, just like we currently do in master
, stable and auto-deploy branches.
Scope of change
-
Add pipeline rules for main
!54409 (merged) -
Create new pipeline schedules for main
-
Update CI_PRE_CLONE_SCRIPT
andcache-repo
scripts to be compatible withmain
-
Update hard-coded references to master
in scripts -
...
Edited by Albert Salim