GitlabCI delayed job depending on one of two jobs

Viewed 138

This is my .gitlab-ci.yaml :

stages:
 - Stage1
 - Stage2

# Stage1
Job1:
  stage: Stage1
  script:
    - doSomething

Job2:
  stage: Stage1
  script:
    - doSomething

# Stage2
Job3:
  stage: Stage2
  script:
    - doSomething
  when: delayed
  start_in: 2 hours

I would like to schedule Job3 only if one of [Job1, Job2] succeeds. I don't need both to succeed, just one of the two.

Is this possible?

0 Answers
Related