Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
bennavapbc committed Feb 10, 2025
1 parent bba13c8 commit e7042dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ jobs:
run: gradle jar --info -b build.gradle

- name: SonarQube Analysis
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_HOST_URL: https://sonarqube.cloud.cms.gov
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
gradle sonarqube \
-Dsonar.projectKey=ab2d-lib-project \
-Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.login=$SONAR_TOKEN
- name: Quality Gate
id: sonarqube-quality-gate-check
Expand Down
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ subprojects {
jar {
processResources.exclude('checkstyle.xml')
classifier "main".equalsIgnoreCase(gitBranch()) || "main".equalsIgnoreCase(System.getenv('BRANCH_NAME')) ? "" : "SNAPSHOT"
// suppress
// suppress the '*** building branch' logs
if (!'true'.equals(System.getenv("SUPPRESS_LOGGING_BRANCH_CLASSIFIER"))) {
out.println("**** building branch - " + gitBranch() + ", classifier - " + classifier + " - CI branch - " + System.getenv('BRANCH_NAME'))
}
Expand All @@ -169,11 +169,11 @@ subprojects {
finalizedBy jacocoTestReport // report is always generated after tests run
}

// sonarqube {
// properties {
// property 'sonar.coverage.exclusions', "**/SQSConfig.java, **/SNSConfig.java, **/BFDSearchImpl.java, **/BFDClientImpl.java"
// }
// }
sonarqube {
properties {
property 'sonar.coverage.exclusions', "**/SQSConfig.java, **/SNSConfig.java, **/BFDSearchImpl.java, **/BFDClientImpl.java"
}
}

jacocoTestReport {
reports {
Expand Down
4 changes: 0 additions & 4 deletions sonar-project.properties

This file was deleted.

0 comments on commit e7042dd

Please sign in to comment.