Skip to content

Include local project CI in Compliance CI template

Tan Le requested to merge 331506-compliance-include-local-ci-template into master

What does this MR do?

This MR ensures the local Project CI template is always included in the Compliance CI template.

This MR addresses an issue described below:

Steps to reproduce

  1. Create a Compliance CI template in the Compliance project
compliance_job:
  stage: build
  script:
    - echo "Performing compliance build steps"
  1. Create a Compliance framework (e.g SOX) and associate with the Compliance CI template
  2. Assign the Compliance framework to a Developer project
  3. Given the following CI template existed on the default branch on the Developer project
test_job:
  stage: test
  script:
    - echo "Performing test steps"
  1. Create an MR that modifies the .gitlab-ci.yml file in the Developer project.
test_job:
  stage: test
  script:
    - echo "Performing test steps"
+
+ new_job:
+   stage: test
+   script:
+     - echo "Performing new steps"
  1. Observe that the pipeline in the MR uses the Compliance CI template .gitlab-ci.yml file defined in the default branch's .gitlab-ci.yml and ignores any changes made in the MR.

Before

compliance_job:
  stage: build
  script:
    - echo "Performing compliance build steps"

test_job:
  stage: test
  script:
    - echo "Performing test steps"

After

compliance_job:
  stage: build
  script:
    - echo "Performing compliance build steps"

test_job:
  stage: test
  script:
    - echo "Performing test steps"

new_job:
  stage: test
  script:
    - echo "Performing new steps"

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #331506 (closed)

Edited by Tan Le

Merge request reports