Skip to content

Add `dependencies` to .gitlab-ci.yml (EE-only?)

Moved

To https://gitlab.com/gitlab-org/gitlab-ee/issues/1681

Description including problem, use cases, benefits, and/or goals

Developers need to be able to link projects together to trigger CI to run on one project after CI succeeds on another project.

Proposal

@ayufan's has a proposal in https://gitlab.com/gitlab-org/gitlab-ce/issues/3743#note_5111288 for declaring dependencies. The summary example for Omnibus GitLab's .gitlab-ci.yml is:

dependencies:
   - repository: gitlab-org/gitlab-ce
      on: master
   - repository: gitlab-org/gitlab-ee
     on: master

build_ce:
  script:
  - build-omnibus-ce $GITLAB_CE_TRIGGERED_SHA

build_ee:
  script:
  - build-omnibus-ce $GITLAB_CE_TRIGGERED_SHA

Links / references