From 5ad4f25a82bfceb2fdc75c977415b3442755a5c5 Mon Sep 17 00:00:00 2001 From: teleivo Date: Tue, 24 Sep 2024 13:43:28 +0200 Subject: [PATCH] ci: sonar says it needs at least package so go back to what we had before --- .github/workflows/analyse-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/analyse-pr.yml b/.github/workflows/analyse-pr.yml index f88346702201..6848973d1c1f 100644 --- a/.github/workflows/analyse-pr.yml +++ b/.github/workflows/analyse-pr.yml @@ -40,11 +40,11 @@ jobs: PR: ${{ github.event.number }} if: github.event_name == 'pull_request' run: | - mvn -f dhis-2/pom.xml clean verify --threads 2C --batch-mode --update-snapshots --no-transfer-progress -DskipTests + mvn -f dhis-2/pom.xml clean install --threads 2C --batch-mode --update-snapshots --no-transfer-progress -DskipTests mvn -f dhis-2/pom.xml sonar:sonar -Dsonar.internal.analysis.dbd=false --batch-mode --no-transfer-progress -Dsonar.scm.revision=${{ github.event.pull_request.head.sha }} -Dsonar.projectKey=dhis2_dhis2-core - name: Analyse long-living branch if: github.event_name != 'pull_request' run: | - mvn -f dhis-2/pom.xml clean verify --threads 2C --batch-mode --update-snapshots --no-transfer-progress -DskipTests + mvn -f dhis-2/pom.xml clean install --threads 2C --batch-mode --update-snapshots --no-transfer-progress -DskipTests mvn -f dhis-2/pom.xml sonar:sonar -Dsonar.internal.analysis.dbd=false --batch-mode --no-transfer-progress -Dsonar.branch.name=${GITHUB_REF#refs/heads/} -Dsonar.projectKey=dhis2_dhis2-core