Skip to content

Commit

Permalink
added maven profile 'sonarfugerit' #6
Browse files Browse the repository at this point in the history
to set sonar cloud properties for fugerit-org
  • Loading branch information
fugerit79 committed Aug 31, 2023
1 parent f190051 commit 082c1e7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Build and analyze
# fj-bom project send sonar keys as maven parameters
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pcoverage -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=fugerit-org -Dsonar.projectKey=fugerit-org_fj-bom
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pcoverage,sonarfugerit -Dsonar.projectKey=fugerit-org_fj-bom
env:
# Needed to get some information about the pull request, if any
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- github action for sonar cloud scan (on branch main and branch-sonarcloud) (#6)
- maven profile 'sonarfugerit' to set sonar cloud properties for fugerit-org (#6)

### Removed

Expand Down
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,17 @@

<profiles>

<profile>
<id>sonarfugerit</id>
<properties>
<!-- sonar cloud configuration -->
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.organization>fugerit-org</sonar.organization>
<sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
<!-- sonar.projectKey must be added by the project -->
</properties>
</profile>

<profile>
<id>coverage</id>
<build>
Expand Down

0 comments on commit 082c1e7

Please sign in to comment.