Skip to content

Implement allowing jobs to need stages

Furkan Ayhan requested to merge 220758-needs-stage into master

What does this MR do?

Related to #220758

This MR implements needs:stage for DAG jobs. With this, a job can "need" a whole stage, instead of writing each job in it.

The main idea behind the implementation is to expand the needed stage into jobs. Then everything will work as it already does.

Notes:

Screenshots (strongly suggested)

build1:
  stage: build
  script: sleep 3

build2:
  stage: build
  script: sleep 8

test:
  stage: test
  script: sleep 1
  needs:
    - stage: build

deploy:
  stage: deploy
  script: sleep 1
  needs:
    - stage: build
    - stage: test

Screen_Shot_2020-11-19_at_20.15.05

Screen_Shot_2020-11-19_at_20.15.13

Screen_Shot_2020-11-20_at_13.22.52

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Furkan Ayhan

Merge request reports

Loading