From 5cd396ce0569610969c9610b99fc40c97703734e Mon Sep 17 00:00:00 2001 From: Wojtek Wajerowicz <115081248+wojciech-wajerowicz-sonarsource@users.noreply.github.com> Date: Wed, 29 Nov 2023 11:30:23 +0100 Subject: [PATCH] SONAR-21119 Create new module for Gitlab provisioning. --- .cirrus.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 00c152caa72..ccdbe2a10c3 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -106,6 +106,11 @@ gitlab_task_template: &IS_GITLAB_TASK_NEEDED >- 'private/it-branch/it-tests/src/test/java/com/sonarsource/branch/it/suite/pr/gitlab/**/*.java', 'private/core-extension-gitlab-vulnerability-report/src/main/**/*.java') +gitlab_provisioning_task_template: &GITLAB_PROVISIONING_TASK_TEMPLATE + only_if: >- + $CIRRUS_BRANCH == $BRANCH_MAIN || $CIRRUS_BRANCH =~ $BRANCH_PATTERN_MAINTENANCE || $CIRRUS_BRANCH == $BRANCH_NIGHTLY || + changesInclude('private/core-extension-gitlab-provisioning/**/*.java') + azure_task_template: &IS_AZURE_TASK_NEEDED >- $CIRRUS_BRANCH == $BRANCH_MAIN || $CIRRUS_BRANCH =~ $BRANCH_PATTERN_MAINTENANCE || $CIRRUS_BRANCH == $BRANCH_NIGHTLY || changesInclude('private/core-extension-developer-server/src/main/java/com/sonarsource/branch/pr/azuredevops/**/*.java', 'private/it-branch/it-tests/src/test/java/com/sonarsource/branch/it/suite/pr/azure/**/*.java') @@ -615,6 +620,22 @@ qa_github_provisioning_task: - ./private/cirrus/cirrus-qa.sh h2 <<: *DEFAULT_ARTIFACTS_TEMPLATE +qa_gitlab_provisioning_task: + <<: *DEFAULT_TEMPLATE + <<: *BUILD_DEPENDANT_TASK_TEMPLATE + <<: *GITLAB_PROVISIONING_TASK_TEMPLATE + <<: *JAR_CACHE_TEMPLATE + <<: *GRADLE_CACHE_TEMPLATE + eks_container: + <<: *CONTAINER_TEMPLATE + cpu: 4 + memory: 7Gb + env: + QA_CATEGORY: GITLAB_PROVISIONING + script: + - ./private/cirrus/cirrus-qa.sh h2 + <<: *DEFAULT_ARTIFACTS_TEMPLATE + qa_github_slow_task: <<: *DEFAULT_TEMPLATE <<: *BUILD_DEPENDANT_TASK_TEMPLATE -- 2.39.5