Skip to content

Set cluster jobs to only run in main project

Marcel Amirault requested to merge update-pipeline-cluster-jobs into master

What does this MR do?

As per the first related issue, we want to be extra sure that we don't run cluster jobs on Fork pipelines by default.

This was already happening because fork projects didn't have the KUBECONFIG variable (now deprecated?) defined in their project, but it's good to be explicit about it and set it to be based on the project path, not the presence of the variable.

After these jobs are configured to run in this project only, we can turn back on the shared runners, as per the second related issue, which will help out new contributors who fork the project.

Related issues

Checklist

See Definition of done.

For anything in this list which will not be completed, please provide a reason in the MR discussion.

Required

  • Merge Request Title and Description are up to date, accurate, and descriptive
  • MR targeting the appropriate branch
  • MR has a green pipeline on GitLab.com

Expected (please provide an explanation if not completing)

  • Test plan indicating conditions for success has been posted and passes
  • Documentation created/updated
  • Tests added
  • Integration tests added to GitLab QA
  • Equivalent MR/issue for omnibus-gitlab opened
Edited by Marcel Amirault

Merge request reports