diff --git a/.drone.yml b/.drone.yml
index b69d76d..127726e 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -12,27 +12,27 @@ steps:
environment:
MAVEN_OPTS: -Xmx2048m -XX:+TieredCompilation -XX:TieredStopAtLevel=1
commands:
- - mvn clean verify
+ - mvn clean verify #-Poffline --settings nexus-settings.xml
- mvn jacoco:report # Generar reporte de cobertura
volumes:
- name: maven-cache
path: /root/.m2
# # Paso 2: Análisis SonarQube con Maven
- # - 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: 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]
+ - 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: 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 #--settings nexus-settings.xml
+ when:
+ event: [push, pull_request]
# Paso 3: Build y Push de Docker Image a Nexus (NUEVO)
- name: docker-build-push
@@ -83,7 +83,8 @@ steps:
- echo "Fin despliegue..."
volumes:
- name: maven-cache
- temp: {}
+ host:
+ path: /tmp/drone-maven-cache
- name: docker-sock
host:
path: /var/run/docker.sock # Montar socket de Docker
diff --git a/nexus-settings.xml b/nexus-settings.xml
index ce11ae2..c870a99 100644
--- a/nexus-settings.xml
+++ b/nexus-settings.xml
@@ -8,5 +8,98 @@
yandel
yandel
+
+
+
+ millicom-nexus-mirror
+ admin
+ LTLmv4sPnAp9Hpb
+
+
+
+ Private-Token
+ XXXXXXXXXX
+
+
+
+
+
+
+ millicom-nexus-cbs-mirror
+ admin
+ LTLmv4sPnAp9Hpb
+
+
+
+ Private-Token
+ XXXXXXXXXX
+
+
+
+
+
+
+
+
+
+ millicom-nexus-mirror
+ Mirror
+ http://3.208.115.4:30081/repository/maven-public
+ millicom-nexus
+
+
+
+ millicom-nexus-cbs-mirror
+ Mirror CBS
+ http://3.208.115.4:30081/repository/maven-public-cbs
+ millicom-nexus-cbs
+
+
+
+ maven-default-http-blocker
+ external:dummy:*
+ Pseudo repository to mirror external repositories initially using HTTP.
+ http://0.0.0.0/
+
+
+
+
+
+ nexus
+ *
+
+ http://10.0.0.126:8084/repository/maven-public/
+
+
+
+
+
+ org.sonarsource.scanner.maven
+
+
+
+
+ sonar
+
+ true
+
+
+ http://10.0.0.126:9000
+ squ_465ae384ffda803d8e58d9ef0111bef1277c874a
+
+
+
+
+ offline
+
+ true
+
+
+
+
+
+ sonar
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index dda6b94..a4207a0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
nexus
- https://nexus.myapps.bo/repository/maven-public/
+ http://10.0.0.126:8084/repository/maven-public/
@@ -71,7 +71,7 @@
nexus
- https://nexus.myapps.bo/repository/maven-public/
+ http://10.0.0.126:8084/repository/maven-public/