Enable/Disable Auto DevOps jobs
Description
If someone has no need for our Code Quality analysis in Auto DevOps, they have to embed the .gitlab-ci.yml
into their repo and manually delete or disable the job. We should let them disable things using variables, and the web UI.
Proposal
- Make Code Quality job depend on
AUTO_DEVOPS_CODE_QUALITY
- Make Build job depend on
AUTO_DEVOPS_BUILD
- Make Test job depend on
AUTO_DEVOPS_TEST
All of these should default to on, but not depend on the variable actually being present, so somehow they should understand defaults. Perhaps that means we actually make variables for the negative, like <JOB>_DISABLE=true
. Or have jobs do except
instead of only
, and make them excluded if the value is set to false
.
Links / references
Documentation blurb
Overview
What is it? Why should someone use this feature? What is the underlying (business) problem? How do you use this feature?
Use cases
Who is this for? Provide one or more use cases.
Feature checklist
Make sure these are completed before closing the issue, with a link to the relevant commit.
-
Feature assurance -
Documentation -
Added to features.yml