Enhance Woodpecker workflow: add sonarcloud scan and test steps, update Maven configuration in pom.xml.
This commit is contained in:
@@ -9,8 +9,18 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- echo "Hello World!"
|
- echo "Hello World!"
|
||||||
|
|
||||||
- name: compile
|
- name: test
|
||||||
image: maven:3-amazoncorretto-17-alpine
|
image: maven:3-amazoncorretto-17-alpine
|
||||||
commands:
|
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
|
||||||
|
|
||||||
|
|||||||
@@ -157,6 +157,7 @@
|
|||||||
<version>3.11.2</version>
|
<version>3.11.2</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<failOnError>false</failOnError>
|
<failOnError>false</failOnError>
|
||||||
|
<failOnWarnings>false</failOnWarnings>
|
||||||
<locale>en</locale>
|
<locale>en</locale>
|
||||||
<source>${java.version}</source>
|
<source>${java.version}</source>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
Reference in New Issue
Block a user