diff --git a/.drone.yml b/.drone.yml index a19bff0..77fa8f1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,12 +1,6 @@ kind: pipeline type: docker name: default - -environment: - SONAR_HOST_URL: - from_secret: sonarScannerHostUrl - SONAR_LOGIN: - from_secret: sonarScannerLogin steps: - name: test @@ -16,5 +10,10 @@ steps: - mvn test -B - name: analyse image: maven:3-jdk-10 + environment: + SONAR_HOST_URL: + from_secret: sonarScannerHostUrl + SONAR_LOGIN: + from_secret: sonarScannerLogin commands: - mvn clean verify sonar:sonar -Dsonar.projectKey=LDC -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN