Skip to content

Include CI_HAS_OPEN_REQUIREMENTS variable

Jan Provaznik requested to merge requirements_ci_var into master

What does this MR do?

Users can use this variable to dynamically include a CI job which marks all requirements as passed. E.g. something like

job:
  rules:
  - if: "$CI_HAS_OPEN_REQUIREMENTS" == "true"
    when: manual
  - when: never
  when: manual
  allow_failure: false
  script:
    - mkdir tmp
    - echo "{\"*\":\"passed\"}" > tmp/artifacts.json
  artifacts:
    reports:
      requirements: tmp/artifacts.json

Related to #221227 (closed)

Screenshots

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 Jan Provaznik

Merge request reports