-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
name: 'Sonar Scanner' | ||
description: 'Run Sonar Scanner to load JaCoCo report on SonarCloud' | ||
inputs: | ||
sonar_token: | ||
sonar-token: | ||
description: 'SonarCloud token' | ||
required: true | ||
aggregate-report-path: | ||
description: 'Path of the aggregated JaCoCo report' | ||
required: true | ||
project_key: | ||
project-key: | ||
description: 'SonarCloud project key' | ||
required: true | ||
sonar-host-url: | ||
description: 'SonarCloud host url' | ||
required: false | ||
default: 'https://sonarcloud.io' | ||
sonar-organization: | ||
description: 'SonarCloud organization' | ||
required: false | ||
default: 'alfresco' | ||
|
||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Load JaCoCo report on SonarCloud | ||
env: | ||
SONAR_TOKEN: ${{ inputs.sonar_token }} | ||
SONAR_TOKEN: ${{ inputs.sonar-token }} | ||
shell: bash | ||
run: | | ||
mvn sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=alfresco -Dsonar.projectKey=${{ inputs.project_key}} -Dsonar.coverage.jacoco.xmlReportPaths=${{ inputs.aggregate-report-path }} | ||
mvn sonar:sonar -Dsonar.host.url=${{ inputs.sonar-host-url }} -Dsonar.organization=${{ inputs.sonar-organization }} -Dsonar.projectKey=${{ inputs.project-key }} -Dsonar.coverage.jacoco.xmlReportPaths=${{ inputs.aggregate-report-path }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v8.6.3 | ||
v8.6.4 |