Gitlab 12.9 does not execute merge_requests jobs?

Hello,

I would like to say that previously that feature worked correctly.
I have setup some jobs in my gitlab pipeline with option only: merge_requests.

Today I did two actions:

  • Update GITLAB and GITLAB RUNNER to version 12.9
  • Rename the project and move the project to another repo

All others jobs are working correctly but the jobs setup with only: merge_requests are not longer executed. A bug with the last version ?

Thanks.

Anyone ?

I found the issue so I share it here.
I am using Gitlab Runner version 12.9.
If you choose a two equal job name with two different stages, perhaps you will encounter the same issue.

Example:

stages:
  - test1
  - test2

test:
  stage: test1
  ...
  only:                                                                                             
    - branches

test:
  stage: test2
  ...
  only:                                                                                             
    - merge_requests

As a workaround, just use a different name for each job.