Extend YAML except and only with protected branches
Description
I'm currently working on a project with multiple version branches and feature-branches in the same repository.
Now I came up to the problem that our developers work on a new feature branch on our upstream repository. The problem is that I can't differentiate correctly between the (protected) version branches and the (not protected) feature branches for the CI build pipeline.
There is like a small workaround/solution to get this working by using regex patterns for the only
and except
definitions, but that's just a workaround.
e.g. by adding protected_branches
to the except
and only
part of a job definition it would be easier to differentiate in the CI build pipeline.
Proposal
Adding protected_branches
to the except
and only
part of a job definition makes it easier to differentiate between version branches and feature branches and we can get rid of the workaround.
Links / references
'Configuration of your builds with .gitlab-ci.yml'
feature proposal ~CI