Skip to content

Commit

Permalink
Merge pull request #60 from OpenMPDK/Address-deprecated-SonarCloud-bu…
Browse files Browse the repository at this point in the history
…ild-wrapper-dump

Address deprecated SonarCloud build-wrapper-dump
  • Loading branch information
velomatt authored Jun 21, 2024
2 parents 7b983d3 + d9a02ec commit 09a28e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions buildspec/sonar-scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ phases:
# Download unit test coverage report(s)
- aws s3 cp --recursive "$DSSS3URI/cache/dss-sdk/$GITHUB_RUN_NUMBER/unit/df_out/reports/" df_out/reports/ --only-show-errors
# replace the old CODEBUILD_SRC_DIR with the current one in bw-output
- sed -i -r "s|/codebuild/output/src[^/]+/src/github.com/OpenMPDK/dss-sdk|$CODEBUILD_SRC_DIR|g" bw-output/build-wrapper-dump.json
- sed -i -r "s|/codebuild/output/src[^/]+/src/github.com/OpenMPDK/dss-sdk|$CODEBUILD_SRC_DIR|g" bw-output/compile_commands.json
# Download the latest sonar-scanner
- rm -rf /sonar-scanner*
- wget --no-verbose --content-disposition -E -c "https://search.maven.org/remote_content?g=org.sonarsource.scanner.cli&a=sonar-scanner-cli&v=LATEST&c=linux&e=zip"
Expand All @@ -36,4 +36,5 @@ phases:
-Dsonar.pullrequest.key=$(echo $GITHUB_REF | grep -oP "^refs/pull/\K[^/]+") \
-Dsonar.pullrequest.base=$GITHUB_BASE_REF \
-Dsonar.pullrequest.branch=$GITHUB_HEAD_REF \
-Dsonar.coverageReportPaths=$SONAR_UNIT_TEST_REPORT
-Dsonar.coverageReportPaths=$SONAR_UNIT_TEST_REPORT \
-Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
1 change: 0 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
sonar.organization=openmpdk
sonar.projectKey=OpenMPDK_dss-sdk
sonar.cfamily.build-wrapper-output=bw-output
sonar.sources=target/,host/,utils/
sonar.tests=target/,tests/,systemtests/
sonar.exclusions=target/test/**/*,target/oss/**/*,host/src/**/*,**/*.java
Expand Down

0 comments on commit 09a28e4

Please sign in to comment.