workaround for aarch64
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Beatrice Dellacà 2025-03-09 01:25:59 +01:00
parent 64b8d3e32a
commit 86cd25435e

View File

@ -33,8 +33,17 @@ steps:
# Run SonarQube code analysis # Run SonarQube code analysis
- name: code-analysis - name: code-analysis
image: sonarsource/sonar-scanner-cli:latest image: openjdk:11-jre-slim
commands: commands:
# Install wget and unzip
- apt-get update && apt-get install -y wget unzip
# Download the SonarScanner CLI zip (adjust the version as needed)
- wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-7.0.2.4839-linux-aarch64.zip -O sonar-scanner.zip
# Unzip it to /opt
- unzip sonar-scanner.zip -d /opt/
# Add sonar-scanner to the PATH (the folder name may vary with version)
- export PATH=/opt/sonar-scanner-7.0.2.4839-linux-aarch64/bin:$PATH
# Run the scanner
- sonar-scanner -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.sources=. -Dsonar.host.url=$SONAR_INSTANCE_URL -Dsonar.login=$SONAR_LOGIN_KEY - sonar-scanner -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.sources=. -Dsonar.host.url=$SONAR_INSTANCE_URL -Dsonar.login=$SONAR_LOGIN_KEY
environment: environment:
SONAR_PROJECT_KEY: SONAR_PROJECT_KEY: