gitlab-ci: Stop using manual jobs for merge requests

Graphics / Mesa 3D Graphics Library / Mesa - Michel Dänzer [] - 15 January 2020 10:31 EST

They were causing trouble with Marge Bot: The project settings require that the pipeline succeeds before a merge request (MR) can be merged, otherwise Marge doesn't wait for the pipeline to succeed before merging an MR assigned to her. But Marge can't start manual jobs, so she would always time out waiting for pipelines with manual jobs.

To avoid this, use these rules:
- Run the pipeline by default for MRs and main project branches changing any files affecting it.
- For other MRs, run a single dummy job which always succeeds.
- Don't run any jobs for main project branch changes (e.g. from an MR having been merged) not affecting the pipeline.
- Allow jobs to be started manually on branches of forked projects, as before.

8775b742ea3 gitlab-ci: Stop using manual jobs for merge requests
.gitlab-ci.yml | 72 ++++++++++++++++++++++++++++++++++++----------------------
1 file changed, 45 insertions(+), 27 deletions(-)


  • Share