From 2b7faf99c532db8b9a3c91a5feaabad22ed76df7 Mon Sep 17 00:00:00 2001 From: oranheim Date: Thu, 3 Oct 2024 21:29:36 +0200 Subject: [PATCH] Try fix sonar workflow --- .github/workflows/coverage-and-sonar-analysis.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage-and-sonar-analysis.yml b/.github/workflows/coverage-and-sonar-analysis.yml index 1ad953c..fa41c64 100644 --- a/.github/workflows/coverage-and-sonar-analysis.yml +++ b/.github/workflows/coverage-and-sonar-analysis.yml @@ -36,12 +36,16 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} run: | - mvn --batch-mode --no-transfer-progress clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \ + mvn --batch-mode --no-transfer-progress clean verify org.jacoco:jacoco-maven-plugin:report org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \ -P coverage,sonar \ -Dsonar.projectKey=descoped_data-collector-core \ -Dsonar.organization=descoped \ -Dsonar.host.url=https://sonarcloud.io \ - -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml + -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml \ + -X - - name: Check for Jacoco report - run: ls -l target/site/jacoco/jacoco.xml + - name: List target directory + run: ls -R target + + - name: Find Jacoco files + run: find . -name "*jacoco*.xml"