Improve the only/except extendable jobs
What does this MR do?
- Factorize the
variables: - $CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_NAMESPACE == "gitlab-org"
.only:variables-canonical-dot-com
extensible job. - Extract
kubernetes: active
to a new.only:kubernetes
extensible job. - Rename
.only-canonical-schedules
to.only:variables_refs-canonical-dot-com-schedules
and make it extend from.only:variables-canonical-dot-com
. - Extract
except: refs: - /^\d+-\d+-auto-deploy-\d+$/
.except:refs-deploy
extensible job. - Extract
except: refs: - master - tags variables: - $CI_COMMIT_REF_NAME =~ /^[\d-]+-stable(-ee)?$/
.except:refs-master-tags-stable-deploy
extensible job. - Use the new extensible jobs where possible.
- Use the
.keyword:attribute-description-of-the-job
convention, e.g..except:refs-deploy
only includes theexcept
keyword, with therefs
attributes, and it's description isdeploy
.
Edited by Rémy Coutable