fix: wait for qualitygate when running sonarqube pipeline #1

Merged
oliver merged 3 commits from sonar-wait-for-qualitygate into main 2025-01-05 20:33:40 +01:00
4 changed files with 18 additions and 11 deletions

View file

@ -129,9 +129,9 @@ jobs:
uses: https://github.com/actions/cache@v4
with:
path: ~/.sdkman
key: ${{ runner.os }}-sdkman
key: ${{ runner.os }}-sdkman-${{ hashFiles('**/.sdkmanrc') }}
restore-keys: |
${{ runner.os }}-sdkman
${{ runner.os }}-sdkman-
env:
ACTIONS_STEP_DEBUG: true
@ -139,9 +139,9 @@ jobs:
uses: https://github.com/actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven
${{ runner.os }}-maven-
env:
ACTIONS_STEP_DEBUG: true

View file

@ -108,9 +108,9 @@ jobs:
uses: https://github.com/actions/cache@v4
with:
path: ~/.sdkman
key: ${{ runner.os }}-sdkman
key: ${{ runner.os }}-sdkman-${{ hashFiles('**/.sdkmanrc') }}
restore-keys: |
${{ runner.os }}-sdkman
${{ runner.os }}-sdkman-
env:
ACTIONS_STEP_DEBUG: true
@ -125,9 +125,9 @@ jobs:
uses: https://github.com/actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven
${{ runner.os }}-maven-
env:
ACTIONS_STEP_DEBUG: true
@ -139,4 +139,6 @@ jobs:
env:
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONARQUBE_HOST }}
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
run: >
mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
-Dsonar.qualitygate.wait=true

View file

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
</suppressions>

View file

@ -341,7 +341,6 @@
</publishRegistry>
</docker>
<image>
<!--<builder>dashaun/builder:tiny</builder>-->
<name>cr.w9r.dev/spring-boot/${project.artifactId}:${project.version}</name>
<publish>true</publish>
</image>
@ -398,6 +397,10 @@
<nvdDatafeedUrl>https://vulnz.w9r.de/nvd/nvdcve-{0}.json.gz</nvdDatafeedUrl>
<nvdDatafeedServerId>vulnz</nvdDatafeedServerId>
<formats>HTML,XML,CSV,JSON,JUNIT,GITLAB</formats>
<suppressionFiles>
<suppressionFile>dependency-check-suppressions.xml</suppressionFile>
<suppressionFile>https://w9r.dev/w9r.dev/dependency-check-suppressions/raw/branch/main/dependency-check-suppressions.xml</suppressionFile>
</suppressionFiles>
</configuration>
<executions>
<execution>
@ -515,7 +518,6 @@
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<!--<builder>paketobuildpacks/builder-jammy-tiny:latest</builder>-->
<builder>dashaun/builder:tiny</builder>
<env>
<BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE>