GitLab CI only:

From wikieduonline
Revision as of 08:47, 28 September 2022 by Welcome (talk | contribs) (→‎See also)
Jump to navigation Jump to search

Official example

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:


See also

Advertising: