SONARQUBE CONFIG
Some checks failed
Build and Push Quarkus Image / build-and-push (push) Failing after 2m48s
Some checks failed
Build and Push Quarkus Image / build-and-push (push) Failing after 2m48s
This commit is contained in:
@@ -29,13 +29,15 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|
||||||
- name: SonarQube Analyse uitvoeren
|
- name: SonarQube Analyse uitvoeren
|
||||||
# We gebruiken hier de SonarQube parameters, met de token veilig als secret opgeslagen
|
# Wacht op de Quality Gate en geef het pad naar het Jacoco rapport op
|
||||||
run: |
|
run: |
|
||||||
./mvnw clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
|
./mvnw clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
|
||||||
-Dsonar.projectKey=Jobfindr \
|
-Dsonar.projectKey=Jobfindr \
|
||||||
-Dsonar.projectName='Jobfindr' \
|
-Dsonar.projectName='Jobfindr' \
|
||||||
-Dsonar.host.url=https://sonarqube.melvanveen.nl \
|
-Dsonar.host.url=https://sonarqube.melvanveen.nl \
|
||||||
-Dsonar.token=${{ secrets.SONAR_TOKEN }}
|
-Dsonar.token=${{ secrets.SONAR_TOKEN }} \
|
||||||
|
-Dsonar.qualitygate.wait=true \
|
||||||
|
-Dsonar.coverage.jacoco.xmlReportPaths=target/jacoco-report/jacoco.xml
|
||||||
|
|
||||||
- name: Quarkus applicatie bouwen (.jar genereren)
|
- name: Quarkus applicatie bouwen (.jar genereren)
|
||||||
run: ./mvnw clean package -DskipTests
|
run: ./mvnw clean package -DskipTests
|
||||||
@@ -46,7 +48,6 @@ jobs:
|
|||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
# Gitea genereert automatisch dit token, net als GitHub.
|
# Gitea genereert automatisch dit token, net als GitHub.
|
||||||
# Deze heeft de rechten om packages te pushen.
|
|
||||||
password: ${{ secrets.CR_PAT }}
|
password: ${{ secrets.CR_PAT }}
|
||||||
|
|
||||||
- name: Docker image bouwen en pushen
|
- name: Docker image bouwen en pushen
|
||||||
|
|||||||
5
pom.xml
5
pom.xml
@@ -90,6 +90,11 @@
|
|||||||
<artifactId>rest-assured</artifactId>
|
<artifactId>rest-assured</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.quarkus</groupId>
|
||||||
|
<artifactId>quarkus-jacoco</artifactId>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|||||||
Reference in New Issue
Block a user