Skip to content

Commit a561251

Browse files
committed
fix project basedir?
1 parent da6bdd3 commit a561251

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,17 @@ jobs:
178178
with:
179179
name: clang-tidy
180180
path: ${{ env.BASEDIR }}/target_ws/src/$(basename $(pwd))
181+
- name: chown the target_ws because it came out of root-owned Docker container filesystem
182+
run: sudo chown -R "$USER:$USER" ${{ env.BASEDIR }}/target_ws
183+
- name: move sonar-project.properties from checkout into ICI output
184+
run: mv sonar-project.properties ${{ env.BASEDIR }}/target_ws
181185
- name: SonarQube Scan
182186
# Don't run if SONAR_TOKEN is not set (i.e. PR job from a fork)
183187
if: matrix.env.CCOV && steps.ici.outputs.target_test_results == '0' && env.SONAR_TOKEN != ''
184188
uses: SonarSource/[email protected]
189+
with:
190+
projectBaseDir: ${{ env.BASEDIR }}/target_ws
191+
185192
- name: Prepare target_ws for cache
186193
if: always() && !matrix.env.CCOV
187194
run: |

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ sonar.projectKey=ros-planning_moveit2
22
sonar.organization=moveit
33

44
sonar.python.version=3
5-
sonar.sources=.work/target_ws/src
5+
sonar.sources=./src
66
sonar.cfamily.gcov.reportPath=.work/target_ws/coverage.info
77
sonar.scm.exclusions.disabled=true
88
sonar.exclusions=.work/target_ws/src/moveit2/moveit_planners/test_configs/prbt_ikfast_manipulator_plugin/src/prbt_manipulator_ikfast_solver.cpp

0 commit comments

Comments
 (0)