Fix SonarQube integration
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is failing Details

This commit is contained in:
Bea 2023-01-15 21:09:03 +01:00
parent 944b4cf905
commit 9578fcdbc2
1 changed files with 8 additions and 1 deletions

View File

@ -22,7 +22,14 @@ steps:
- name: code-analysis
image: maven:3-eclipse-temurin-16
commands:
- mvn sonar:sonar --no-transfer-progress -Dsonar.projectKey=${SONAR_PROJECT_KEY} -Dsonar.host.url=${SONAR_INSTANCE_URL} -Dsonar.login=${SONAR_LOGIN_KEY}
- mvn sonar:sonar --no-transfer-progress -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.host.url=$SONAR_INSTANCE_URL -Dsonar.login=$SONAR_LOGIN_KEY
environment:
SONAR_PROJECT_KEY:
from_secret: sonar_project_key
SONAR_INSTANCE_URL:
from_secret: sonar_instance_url
SONAR_LOGIN_KEY:
from_secret: sonar_login_key
- name: maven-auth
image: robertstettner/drone-mvn-auth