Skip to content

Make `needs:` to require a strong reference

Kamil Trzciński requested to merge make-needs-strong-connection into master

What does this MR do?

Makes a needs: to be strong reference to jobs created.

It means that all needs: have to be present for a job to be created

Example

build-a:
  only: [master]

test-a:
  needs: [build-a]

The test-a will not be created unless pushed to master, as it requires the build-a to be a part of pipeline.

Does this MR meet the acceptance criteria?

Conformity

Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/65512

Related https://gitlab.com/gitlab-org/gitlab-ce/issues/65488 Related https://gitlab.com/gitlab-org/gitlab-ce/issues/65457

Edited by Kamil Trzciński

Merge request reports