1

Which version of .gitlab-ci.yml is actually been taken when running CI-Jobs in a MergeRequest?

Is it the version provided in the

  • source-branch,
  • target-branch,
  • or master?
jschnasse
  • 8,526
  • 6
  • 32
  • 72

1 Answers1

0

The runner checks out the source-branch!

If the branch does not contain all commits of the master branch it is marked as 'detached'. In that case it is advisable to rebase the branch to the master. Otherwise a red state may occur at merge time.

There are more enhanced checkout/merge/test strategies called Merge Trains, but that is another topic.

jschnasse
  • 8,526
  • 6
  • 32
  • 72