You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2022/04/27 12:45:48 UTC
[cloudstack] branch main updated: .github: sonarcloud integration fixes
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new c379430dab .github: sonarcloud integration fixes
c379430dab is described below
commit c379430dab13605b4933b95940c795fb8605bf06
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Wed Apr 27 18:15:10 2022 +0530
.github: sonarcloud integration fixes
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
.github/workflows/coverage-check.yml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/coverage-check.yml b/.github/workflows/coverage-check.yml
index ff347f782c..3c1c4ed693 100644
--- a/.github/workflows/coverage-check.yml
+++ b/.github/workflows/coverage-check.yml
@@ -85,13 +85,13 @@ jobs:
id: coverage
if: steps.java-changes.outputs.any_changed == 'true'
env:
- GITHUB_TOKEN: ${{ secrets.ACS_ROBOT_TOKEN }}
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
PR_ID: ${{ github.event.pull_request.number }}
run: |
git clone https://github.com/shapeblue/cloudstack-nonoss.git nonoss
cd nonoss && bash -x install-non-oss.sh && cd ..
- mvn -P quality -Dsimulator -Dnoredist clean install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=apachecloudstack -Dsonar.pullrequest.key=$PR_ID -Dsonar.pullrequest.base=main -Dsonar.pullrequest.branch=refs/pull/${{ github.event.number }}/merge
+ mvn -P quality -Dsimulator -Dnoredist clean install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=apachecloudstack -Dsonar.pullrequest.key=$PR_ID -Dsonar.pullrequest.base=main -Dsonar.pullrequest.branch=refs/pull/${{ github.event.number }}/merge -Dsonar.pullrequest.github.repository=apache/cloudstack -Dsonar.pullrequest.provider=GitHub
echo "COVERAGE<<EOF" >> $GITHUB_ENV
for file in ${{ steps.java-changes.outputs.all_changed_files }}; do
@@ -110,4 +110,4 @@ jobs:
with:
token: ${{ secrets.ACS_ROBOT_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
- body: "## PR Coverage Report\n|**CLASS**|**INSTRUCTION MISSED**|**INSTRUCTION COVERED**|**BRANCH MISSED**|**BRANCH COVERED**|**LINE MISSED**|**LINE COVERED**|\n|-----|-----|-----|-----|-----|-----|-----|\n${{ env.COVERAGE }}"
+ body: "## PR Analysis\nhttps://sonarcloud.io/summary/new_code?id=apachecloudstack&pullRequest=${{ github.event.pull_request.number }}\n## PR Coverage Report\n|**CLASS**|**INSTRUCTION MISSED**|**INSTRUCTION COVERED**|**BRANCH MISSED**|**BRANCH COVERED**|**LINE MISSED**|**LINE COVERED**|\n|-----|-----|-----|-----|-----|-----|-----|\n${{ env.COVERAGE }}"