This commit is contained in:
parent
1f31d65d1c
commit
095a3f5deb
33
.drone.yml
33
.drone.yml
@ -12,27 +12,27 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
MAVEN_OPTS: -Xmx2048m -XX:+TieredCompilation -XX:TieredStopAtLevel=1
|
MAVEN_OPTS: -Xmx2048m -XX:+TieredCompilation -XX:TieredStopAtLevel=1
|
||||||
commands:
|
commands:
|
||||||
- mvn clean verify
|
- mvn clean verify #-Poffline --settings nexus-settings.xml
|
||||||
- mvn jacoco:report # Generar reporte de cobertura
|
- mvn jacoco:report # Generar reporte de cobertura
|
||||||
volumes:
|
volumes:
|
||||||
- name: maven-cache
|
- name: maven-cache
|
||||||
path: /root/.m2
|
path: /root/.m2
|
||||||
|
|
||||||
# # Paso 2: Análisis SonarQube con Maven
|
# # Paso 2: Análisis SonarQube con Maven
|
||||||
# - name: sonarqube-analysis
|
- name: sonarqube-analysis
|
||||||
# image: maven:3.9-eclipse-temurin-21-alpine
|
image: maven:3.9-eclipse-temurin-21-alpine
|
||||||
# environment:
|
environment:
|
||||||
# #SONAR_HOST_URL: ${SONARQUBE_URL} # URL de tu servidor SonarQube
|
#SONAR_HOST_URL: ${SONARQUBE_URL} # URL de tu servidor SonarQube
|
||||||
# #SONAR_LOGIN: ${SONARQUBE_TOKEN} # Token de autenticación en SonarQube
|
#SONAR_LOGIN: ${SONARQUBE_TOKEN} # Token de autenticación en SonarQube
|
||||||
# #SONAR_PROJECT_KEY: ${SONARQUBE_PROJECT_KEY} # Clave del proyecto 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_HOST_URL: http://10.0.0.126:9000 # URL de tu servidor SonarQube
|
||||||
# SONAR_LOGIN: squ_465ae384ffda803d8e58d9ef0111bef1277c874a # Token de autenticación en SonarQube
|
SONAR_LOGIN: squ_465ae384ffda803d8e58d9ef0111bef1277c874a # Token de autenticación en SonarQube
|
||||||
# SONAR_PROJECT_KEY: hhh # Clave del proyecto en SonarQube
|
SONAR_PROJECT_KEY: hhh # Clave del proyecto en SonarQube
|
||||||
# commands:
|
commands:
|
||||||
# #- mvn sonar:sonar # Ejecuta el análisis de SonarQube usando Maven
|
#- mvn sonar:sonar # Ejecuta el análisis de SonarQube usando Maven
|
||||||
# - mvn clean verify sonar:sonar -DskipTests
|
- mvn clean verify sonar:sonar -DskipTests #--settings nexus-settings.xml
|
||||||
# when:
|
when:
|
||||||
# event: [push, pull_request]
|
event: [push, pull_request]
|
||||||
|
|
||||||
# Paso 3: Build y Push de Docker Image a Nexus (NUEVO)
|
# Paso 3: Build y Push de Docker Image a Nexus (NUEVO)
|
||||||
- name: docker-build-push
|
- name: docker-build-push
|
||||||
@ -83,7 +83,8 @@ steps:
|
|||||||
- echo "Fin despliegue..."
|
- echo "Fin despliegue..."
|
||||||
volumes:
|
volumes:
|
||||||
- name: maven-cache
|
- name: maven-cache
|
||||||
temp: {}
|
host:
|
||||||
|
path: /tmp/drone-maven-cache
|
||||||
- name: docker-sock
|
- name: docker-sock
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock # Montar socket de Docker
|
path: /var/run/docker.sock # Montar socket de Docker
|
||||||
|
@ -8,5 +8,98 @@
|
|||||||
<username>yandel</username>
|
<username>yandel</username>
|
||||||
<password>yandel</password>
|
<password>yandel</password>
|
||||||
</server>
|
</server>
|
||||||
|
|
||||||
|
|
||||||
|
<server>
|
||||||
|
<id>millicom-nexus-mirror</id>
|
||||||
|
<username>admin</username>
|
||||||
|
<password>LTLmv4sPnAp9Hpb</password>
|
||||||
|
<configuration>
|
||||||
|
<httpHeaders>
|
||||||
|
<property>
|
||||||
|
<name>Private-Token</name>
|
||||||
|
<value>XXXXXXXXXX</value>
|
||||||
|
</property>
|
||||||
|
</httpHeaders>
|
||||||
|
</configuration>
|
||||||
|
|
||||||
|
</server>
|
||||||
|
<server>
|
||||||
|
<id>millicom-nexus-cbs-mirror</id>
|
||||||
|
<username>admin</username>
|
||||||
|
<password>LTLmv4sPnAp9Hpb</password>
|
||||||
|
<configuration>
|
||||||
|
<httpHeaders>
|
||||||
|
<property>
|
||||||
|
<name>Private-Token</name>
|
||||||
|
<value>XXXXXXXXXX</value>
|
||||||
|
</property>
|
||||||
|
</httpHeaders>
|
||||||
|
</configuration>
|
||||||
|
|
||||||
|
</server>
|
||||||
</servers>
|
</servers>
|
||||||
|
|
||||||
|
<mirrors>
|
||||||
|
|
||||||
|
<mirror>
|
||||||
|
<id>millicom-nexus-mirror</id>
|
||||||
|
<name>Mirror</name>
|
||||||
|
<url>http://3.208.115.4:30081/repository/maven-public</url>
|
||||||
|
<mirrorOf>millicom-nexus</mirrorOf>
|
||||||
|
|
||||||
|
</mirror>
|
||||||
|
<mirror>
|
||||||
|
<id>millicom-nexus-cbs-mirror</id>
|
||||||
|
<name>Mirror CBS</name>
|
||||||
|
<url>http://3.208.115.4:30081/repository/maven-public-cbs</url>
|
||||||
|
<mirrorOf>millicom-nexus-cbs</mirrorOf>
|
||||||
|
|
||||||
|
</mirror>
|
||||||
|
<mirror>
|
||||||
|
<id>maven-default-http-blocker</id>
|
||||||
|
<mirrorOf>external:dummy:*</mirrorOf>
|
||||||
|
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
|
||||||
|
<url>http://0.0.0.0/</url>
|
||||||
|
|
||||||
|
</mirror>
|
||||||
|
|
||||||
|
|
||||||
|
<mirror>
|
||||||
|
<id>nexus</id>
|
||||||
|
<mirrorOf>*</mirrorOf>
|
||||||
|
<!-- <url>https://nexus.myapps.bo/repository/maven-public/</url>-->
|
||||||
|
<url>http://10.0.0.126:8084/repository/maven-public/</url>
|
||||||
|
</mirror>
|
||||||
|
</mirrors>
|
||||||
|
|
||||||
|
|
||||||
|
<pluginGroups>
|
||||||
|
<pluginGroup>org.sonarsource.scanner.maven</pluginGroup>
|
||||||
|
</pluginGroups>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>sonar</id>
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>true</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<sonar.host.url>http://10.0.0.126:9000</sonar.host.url>
|
||||||
|
<sonar.login>squ_465ae384ffda803d8e58d9ef0111bef1277c874a</sonar.login>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
|
||||||
|
<profile>
|
||||||
|
<id>offline</id>
|
||||||
|
<properties>
|
||||||
|
<maven.offline>true</maven.offline>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
|
<activeProfiles>
|
||||||
|
<activeProfile>sonar</activeProfile>
|
||||||
|
</activeProfiles>
|
||||||
|
|
||||||
</settings>
|
</settings>
|
4
pom.xml
4
pom.xml
@ -54,7 +54,7 @@
|
|||||||
<pluginRepositories>
|
<pluginRepositories>
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
<id>nexus</id>
|
<id>nexus</id>
|
||||||
<url>https://nexus.myapps.bo/repository/maven-public/</url>
|
<url>http://10.0.0.126:8084/repository/maven-public/</url>
|
||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
|
|
||||||
@ -71,7 +71,7 @@
|
|||||||
|
|
||||||
<repository>
|
<repository>
|
||||||
<id>nexus</id>
|
<id>nexus</id>
|
||||||
<url>https://nexus.myapps.bo/repository/maven-public/</url>
|
<url>http://10.0.0.126:8084/repository/maven-public/</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user