55 ARTIFACTORY_DEPLOY_ACCESS_TOKEN : VAULT[development/artifactory/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-qa-deployer access_token]
66 ARTIFACTORY_DEPLOY_REPO : sonarsource-pypi-public-qa
77 GITHUB_TOKEN : VAULT[development/github/token/licenses-ro token]
8- SONAR_TOKEN : VAULT[development/kv/data/next data.token]
9- SONAR_HOST_URL : https://next.sonarqube.com/sonarqube
108 DEPLOY_PULL_REQUEST : ' true'
119 POETRY_VIRTUALENVS_PATH : " ~/.cache/poetry/venvs"
1210 POETRY_CACHE_DIR : " ~/.cache/poetry/pypoetry"
@@ -158,12 +156,10 @@ documentation_task:
158156 - poetry run python tools/generate_cli_documentation.py
159157 - git diff --exit-code CLI_ARGS.md
160158
161- analysis_linux_task :
159+ analysis_base_linux_template : &ANALYSIS_BASE_LINUX_TEMPLATE
162160 << : *LINUX_CONTAINER_DEFINITION
163- alias : analysis
164- name : " NEXT Analysis"
165161 << : *POETRY_INSTALL
166- # For NEXT analysis we don't need to set the build versions, but we still need to access jfrog to recover the dependencies
162+ # For analysis we don't need to set the build versions, but we still need to access jfrog to recover the dependencies
167163 analysis_script :
168164 - poetry run pytest --cov-report=xml:coverage.xml --cov-config=pyproject.toml --cov=src --cov-branch tests
169165 - poetry run mypy src/ > mypy-report.txt || true # mypy exits with 1 if there are errors
@@ -177,6 +173,30 @@ analysis_linux_task:
177173 format : junit
178174 type : text/xml
179175
176+ analysis_next_task :
177+ << : *ANALYSIS_BASE_LINUX_TEMPLATE
178+ alias : sonar_analysis_next
179+ name : " NEXT Analysis"
180+ env :
181+ SONAR_TOKEN : VAULT[development/kv/data/next data.token]
182+ SONAR_HOST_URL : https://next.sonarqube.com/sonarqube
183+
184+ analysis_SQC_EU_shadow_task :
185+ << : *ANALYSIS_BASE_LINUX_TEMPLATE
186+ alias : sonar_analysis_shadow_sqc_eu
187+ name : " SQC-EU Shadow Analysis"
188+ env :
189+ SONAR_TOKEN : VAULT[development/kv/data/sonarcloud data.token]
190+ SONAR_HOST_URL : https://sonarcloud.io
191+
192+ analysis_SQC_US_shadow_task :
193+ << : *ANALYSIS_BASE_LINUX_TEMPLATE
194+ alias : sonar_analysis_shadow_sqc_us
195+ name : " SQC-US Shadow Analysis"
196+ env :
197+ SONAR_TOKEN : VAULT[development/kv/data/sonarqube-us data.token]
198+ SONAR_HOST_URL : https://sonarqube.us
199+
180200qa_task :
181201 alias : qa
182202 matrix :
@@ -275,7 +295,9 @@ its_macos_task:
275295promote_task :
276296 depends_on :
277297 - formatting
278- - analysis
298+ - sonar_analysis_next
299+ - sonar_analysis_shadow_sqc_eu
300+ - sonar_analysis_shadow_sqc_us
279301 - qa
280302 - qa_windows
281303 - build
0 commit comments