Difference between revisions of "GitLab CI only:"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
https://docs.gitlab.com/ee/ci/yaml/#only--except
 
https://docs.gitlab.com/ee/ci/yaml/#only--except
  
 +
 +
Official example:
 +
job1:
 +
  [[script:]] echo
 +
  [[only:]]
 +
    - main
 +
    - /^issue-.*$/
 +
    - merge_requests
 +
 +
job2:
 +
  script: echo
 +
  [[except:]]
 +
    - main
 +
    - /^stable-branch.*$/
 +
    - schedules
  
  

Revision as of 12:30, 14 September 2022

Advertising: