Update DroneCI configuration
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
db151a3f66
commit
5a74401f74
27
.drone.yml
27
.drone.yml
@ -8,17 +8,36 @@ trigger:
|
|||||||
load: yes
|
load: yes
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: maven:3-eclipse-temurin-16
|
||||||
|
commands:
|
||||||
|
- mvn package --no-transfer-progress -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||||
|
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
image: maven:3-eclipse-temurin-16
|
||||||
|
commands:
|
||||||
|
- mvn test --no-transfer-progress -B -V
|
||||||
|
|
||||||
|
- 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 -B -V
|
||||||
|
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
|
- name: maven-auth
|
||||||
image: robertstettner/drone-mvn-auth
|
image: robertstettner/drone-mvn-auth
|
||||||
pull: true
|
pull: true
|
||||||
servers:
|
servers:
|
||||||
- id: nexus-releases
|
- id: nexus-releases
|
||||||
username:
|
username: $NEXUS_USERNAME
|
||||||
from_secret: nexus_username
|
password: $NEXUS_PASSWORD
|
||||||
password:
|
|
||||||
from_secret: nexus_password
|
|
||||||
profiles:
|
profiles:
|
||||||
- id: default
|
- id: default
|
||||||
repositories:
|
repositories:
|
||||||
|
Loading…
Reference in New Issue
Block a user