Skip to content

Commit 8c79214

Browse files
authored
Merge branch 'fugerit-org:main' into pr/fix-urlclassloader-37061fb
2 parents 37061fb + 9dd967b commit 8c79214

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build_maven_package.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,19 @@ jobs:
5252
node-version: 20
5353
- name: Maven version
5454
run: mvn -v
55+
56+
- name: Build and analyze
57+
if: ${{ env.SONAR_TOKEN != '' }}
58+
run: mvn -B clean install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pcoverage,full,metadata,sonarfugerit -Dsonar.projectKey=fugerit-org_${{github.event.repository.name}}
5559
env:
5660
# Needed to get some information about the pull request, if any
5761
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5862
# SonarCloud access token should be generated from https://sonarcloud.io/account/security/
5963
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
60-
- name: Build and analyze
61-
run: mvn -B clean install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pcoverage,full,metadata,sonarfugerit -Dsonar.projectKey=fugerit-org_${{github.event.repository.name}}
64+
65+
- name: Build (without SonarCloud)
66+
if: ${{ env.SONAR_TOKEN == '' }}
67+
run: mvn -B clean install -Pcoverage,full,metadata
6268
env:
6369
# Needed to get some information about the pull request, if any
6470
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)