Enhance Woodpecker workflow: add sonarcloud scan and test steps, update Maven configuration in pom.xml.

This commit is contained in:
2026-03-07 17:21:35 +01:00
parent d7d49d10fb
commit 729799faef
2 changed files with 13 additions and 2 deletions
+12 -2
View File
@@ -9,8 +9,18 @@ steps:
commands:
- echo "Hello World!"
- name: compile
- name: test
image: maven:3-amazoncorretto-17-alpine
commands:
- mvn clean compile
- mvn clean verify
- name: sonarcloud-scan
image: maven:3-amazoncorretto-17-alpine
environment:
SONAR_TOKEN:
from_secret: sonar_token
commands:
- mvn sonar:sonar -Dsonar.token=$SONAR_TOKEN
when:
- branch: develop
+1
View File
@@ -157,6 +157,7 @@
<version>3.11.2</version>
<configuration>
<failOnError>false</failOnError>
<failOnWarnings>false</failOnWarnings>
<locale>en</locale>
<source>${java.version}</source>
</configuration>