Compare commits
2 Commits
6e473ae62e
...
e9c42f54d2
Author | SHA1 | Date | |
---|---|---|---|
e9c42f54d2 | |||
03bb64069f |
10
.drone.yml
10
.drone.yml
@ -22,11 +22,15 @@ steps:
|
||||
- name: sonarqube-analysis
|
||||
image: maven:3.9-eclipse-temurin-21-alpine
|
||||
environment:
|
||||
SONAR_HOST_URL: ${SONARQUBE_URL} # URL de tu servidor SonarQube
|
||||
SONAR_LOGIN: ${SONARQUBE_TOKEN} # Token de autenticación en SonarQube
|
||||
SONAR_PROJECT_KEY: ${SONARQUBE_PROJECT_KEY} # Clave del proyecto en SonarQube
|
||||
#SONAR_HOST_URL: ${SONARQUBE_URL} # URL de tu servidor SonarQube
|
||||
#SONAR_LOGIN: ${SONARQUBE_TOKEN} # Token de autenticación en SonarQube
|
||||
#SONAR_PROJECT_KEY: ${SONARQUBE_PROJECT_KEY} # Clave del proyecto en SonarQube
|
||||
SONAR_HOST_URL: http://10.0.0.126:9000 # URL de tu servidor SonarQube
|
||||
SONAR_LOGIN: squ_465ae384ffda803d8e58d9ef0111bef1277c874a # Token de autenticación en SonarQube
|
||||
SONAR_PROJECT_KEY: hhh # Clave del proyecto en SonarQube
|
||||
commands:
|
||||
- mvn sonar:sonar # Ejecuta el análisis de SonarQube usando Maven
|
||||
- mvn clean verify sonar:sonar -DskipTests
|
||||
when:
|
||||
event: [push, pull_request]
|
||||
|
||||
|
@ -10,7 +10,7 @@ sonar.tests=src/test/
|
||||
sonar.exclusions=**/controller/core/**,**/graphql/**
|
||||
|
||||
|
||||
sonar.host.url=http://10.0.0.126:9000
|
||||
sonar.host.url=http://sonarqube:9000
|
||||
#sonar.token=squ_095e01f2e60e4d77838a5a114356927fb1c99861
|
||||
sonar.login=squ_465ae384ffda803d8e58d9ef0111bef1277c874a
|
||||
#sonar.login=sqp_249804bd04cbc7f86f7441a227ed7408b6b584ca
|
||||
|
Loading…
x
Reference in New Issue
Block a user