]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-21119 Create new module for Gitlab provisioning.
authorWojtek Wajerowicz <115081248+wojciech-wajerowicz-sonarsource@users.noreply.github.com>
Wed, 29 Nov 2023 10:30:23 +0000 (11:30 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 22 Dec 2023 20:03:01 +0000 (20:03 +0000)
.cirrus.yml

index 00c152caa7250da84e5271a84dc381b7a95a15a1..ccdbe2a10c327b0e31e4d6d0f32021014f6a3533 100644 (file)
@@ -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