Skip to content

Commit 1d587c4

Browse files
Wohopsghislainpiot
authored andcommitted
SCANPY-93 Switch from SonarQube Cloud to SonarQube Server NEXT instance (#127)
(cherry picked from commit 746c614)
1 parent 0a86320 commit 1d587c4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.cirrus.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ env:
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/sonarcloud data.token]
9-
SONAR_HOST_URL: https://sonarcloud.io
8+
SONAR_TOKEN: VAULT[development/kv/data/next data.token]
9+
SONAR_HOST_URL: https://next.sonarqube.com/sonarqube
1010
DEPLOY_PULL_REQUEST: 'true'
1111
POETRY_VIRTUALENVS_PATH: "~/.cache/poetry/venvs"
1212
POETRY_CACHE_DIR: "~/.cache/poetry/pypoetry"
@@ -80,13 +80,13 @@ formatting_task:
8080
analysis_task:
8181
<<: *POETRY_TEMPLATE
8282
alias: analysis
83-
name: "SC Analysis"
83+
name: "NEXT Analysis"
8484
analysis_script:
8585
- poetry run pytest --cov-report=xml:coverage.xml --cov-config=pyproject.toml --cov=src --cov-branch tests
8686
- uv venv
8787
- source .venv/bin/activate
88-
- uv pip install .
89-
- pysonar-scanner -Dsonar.organization=sonarsource -DbuildNumber=${CI_BUILD_NUMBER}
88+
- uv pip install .
89+
- pysonar-scanner -Dsonar.projectKey=SonarSource_sonar-scanner-python -Dsonar.projectName="Python Scanner" -DbuildNumber=${CI_BUILD_NUMBER}
9090
always:
9191
pytest_artifacts:
9292
path: "coverage.xml"
@@ -139,7 +139,6 @@ its_task:
139139
- jfrog poetry-config --server-id-resolve repox --repo-resolve sonarsource-pypi
140140
- jfrog poetry install
141141
- unset SONAR_TOKEN
142-
- unset SONARCLOUD_ANALYSIS
143142
- unset SONAR_HOST_URL
144143
- poetry run pytest
145144

0 commit comments

Comments
 (0)