Update DroneCI config

This commit is contained in:
Bea 2023-01-14 23:27:50 +01:00
parent 0d8c3e2be3
commit 5afb398299
2 changed files with 20 additions and 6 deletions

View File

@ -10,13 +10,20 @@ steps:
image: maven:3-eclipse-temurin-16
commands:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- find
- mvn javadoc:javadoc
- find
- mvn test -B
- find
- name: code-analysis
image: aosapps/drone-sonar-plugin
settings:
sonar_host:
from_secret: sonar_host
sonar_token:
from_secret: sonar_token
image: maven:3-eclipse-temurin-16
commands:
- mvn sonar:sonar -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

View File

@ -97,6 +97,13 @@
<version>3.4.1</version>
</plugin>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.9.1.2184</version>
</plugin>
</plugins>
</build>