Setup SonarQube Code Coverage Analysis #1130
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



This PR introduces the SonarQube scanner to run on the
ci.ymlandsnapshot.ymlworkflows and push the JaCoCo code coverage reports to SonarQube Cloud.Notable changes:
verifyanddeploymaven phase.To test run the
ci.ymlorsnapshot.ymlfrompass-coreorpass-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 inpass-coreorpass-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 frompass-coreandpass-supportpass the SonarQube login secret to this workflow.