]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19689 Run GithubCodeScanningAlertsSynchronizationTest only on nightly and GH...
authorWojtek Wajerowicz <115081248+wojciech-wajerowicz-sonarsource@users.noreply.github.com>
Thu, 9 Nov 2023 11:00:17 +0000 (12:00 +0100)
committersonartech <sonartech@sonarsource.com>
Mon, 13 Nov 2023 20:02:32 +0000 (20:02 +0000)
.cirrus.yml

index 62bb5c383e2300a4b9bea52cb8b11229184772a6..cb8dcc23552b21e40e3baf04a2a62d445f373c40 100644 (file)
@@ -79,6 +79,9 @@ github_task_template: &GITHUB_TASK_TEMPLATE
     'private/core-extension-github-provisioning/**/*'
     )
 
+skip_master_template: &SKIP_MASTER_TEMPLATE
+  skip: $CIRRUS_BRANCH == $BRANCH_MAIN
+
 gitlab_task_template: &GITLAB_TASK_TEMPLATE
   only_if: >-
     $CIRRUS_BRANCH == $BRANCH_MAIN || $CIRRUS_BRANCH =~ $BRANCH_PATTERN_MAINTENANCE || $CIRRUS_BRANCH == $BRANCH_NIGHTLY ||
@@ -604,8 +607,6 @@ qa_github_task:
     memory: 7Gb
   env:
     QA_CATEGORY: GITHUB
-    GITHUB_COM_CODE_SCANNING_ALERTS_TECHNICAL_USER_USERNAME: QA-task
-    GITHUB_COM_CODE_SCANNING_ALERTS_TECHNICAL_USER_TOKEN: VAULT[development/github/token/SonarSource-sonar-enterprise-code-scanning token]
   script:
     - ./private/cirrus/cirrus-qa.sh h2
   <<: *DEFAULT_ARTIFACTS_TEMPLATE
@@ -626,6 +627,25 @@ qa_github_provisioning_task:
     - ./private/cirrus/cirrus-qa.sh h2
   <<: *DEFAULT_ARTIFACTS_TEMPLATE
 
+qa_github_slow_task:
+  <<: *DEFAULT_TEMPLATE
+  <<: *BUILD_DEPENDANT_TASK_TEMPLATE
+  <<: *GITHUB_TASK_TEMPLATE
+  <<: *SKIP_MASTER_TEMPLATE
+  <<: *JAR_CACHE_TEMPLATE
+  <<: *GRADLE_CACHE_TEMPLATE
+  eks_container:
+    <<: *CONTAINER_TEMPLATE
+    cpu: 4
+    memory: 7Gb
+  env:
+    QA_CATEGORY: GITHUB_SLOW_TESTS
+    GITHUB_COM_CODE_SCANNING_ALERTS_TECHNICAL_USER_USERNAME: QA-task
+    GITHUB_COM_CODE_SCANNING_ALERTS_TECHNICAL_USER_TOKEN: VAULT[development/github/token/SonarSource-sonar-enterprise-code-scanning token]
+  script:
+    - ./private/cirrus/cirrus-qa.sh h2
+  <<: *DEFAULT_ARTIFACTS_TEMPLATE
+
 # SAML QA is executed in a dedicated task in order to not slow down the pipeline, as a Keycloak server docker image is required.
 qa_saml_task:
   <<: *DEFAULT_TEMPLATE