https://docs.gitlab.com/ee/ci/yaml/#only--except
job1: script: echo only: - main - /^issue-.*$/ - merge_requests job2: script: echo except: - main - /^stable-branch.*$/ - schedules
Both are equivalent (official example):
job1: script: echo only: - branches job2: script: echo only: refs: - branches
except:
gitlab-ci.yml
job: | stage: | stages: | artifacts: | include: | script: | when: | only: | needs:
.gitlab-ci.yml, .gitlab/
ContainersNotReady
Advertising: