Skip to content

Conversation

@tsande16
Copy link
Contributor

@tsande16 tsande16 commented Feb 18, 2025

This PR introduces the SonarQube scanner to run on the ci.yml and snapshot.yml workflows and push the JaCoCo code coverage reports to SonarQube Cloud.

Notable changes:

  • Add the SonarQube scanner to the verify and deploy maven phase.
  • Add a deep checkout of the git history on the GH checkout action.

To test run the ci.yml or snapshot.yml from pass-core or pass-support. This can be tested by using another PR and referencing that workflow on the feature branch e.g. ci.yml@feature-branch. The SQ login secret is passed from these workflows in pass-core or pass-support.

Note: the CI check fails because of Error status returned by url [https://api.sonarcloud.io/analysis/jres?os=linux&arch=x86_64]: 401. This is because the calling workflows from pass-core and pass-support pass the SonarQube login secret to this workflow.

@tsande16 tsande16 linked an issue Feb 18, 2025 that may be closed by this pull request
@tsande16 tsande16 force-pushed the 1089-setup-jacoco-sonarqube-integration branch from 6acc411 to b468c06 Compare March 7, 2025 19:47
@tsande16 tsande16 requested a review from rpoet-jh March 7, 2025 20:25
@tsande16 tsande16 linked an issue Mar 7, 2025 that may be closed by this pull request
@sonarqubecloud
Copy link

@tsande16 tsande16 merged commit fc6080e into main Mar 10, 2025
3 checks passed
@tsande16 tsande16 deleted the 1089-setup-jacoco-sonarqube-integration branch March 10, 2025 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add SonarQube to eclipse-pass-parent Setup Code Coverage Reporting Service

3 participants