From: Wojtek Wajerowicz <115081248+wojciech-wajerowicz-sonarsource@users.noreply.github.com> Date: Thu, 9 Nov 2023 11:00:17 +0000 (+0100) Subject: SONAR-19689 Run GithubCodeScanningAlertsSynchronizationTest only on nightly and GH... X-Git-Tag: 10.4.0.87286~470 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=46e2b86bd834658de555c3e64bef150909f3e9dc;p=sonarqube.git SONAR-19689 Run GithubCodeScanningAlertsSynchronizationTest only on nightly and GH related PRs. --- diff --git a/.cirrus.yml b/.cirrus.yml index 62bb5c383e2..cb8dcc23552 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -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