diff --git a/.drone.yml b/.drone.yml index 2808b57..c762d85 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,6 +36,9 @@ steps: # run code analysis - name: code-analysis + when: + event: + - push image: maven:3-eclipse-temurin-21 commands: - mvn sonar:sonar --no-transfer-progress -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.host.url=$SONAR_INSTANCE_URL -Dsonar.token=$SONAR_LOGIN_KEY -B -V