summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2022-08-12 14:48:51 +0200
committerMauro Sardara <msardara@cisco.com>2022-08-12 14:49:47 +0200
commit8743186ac085d843eab249887c09ebee8d7a1646 (patch)
treed77635f23c5971cf97c87e533d258733267f44d4
parentce15c05a8a7d01cf7d92e81357aefa1f9b86a6d0 (diff)
ci(sonarscan): fixes for sonar build
- Configure safe directories for git Ref: HICN-741 Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I2c9da853f57ca4576fb4ad35c3ca81de575c7c65 Signed-off-by: Mauro Sardara <msardara@cisco.com>
-rwxr-xr-xscripts/run-sonar.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/run-sonar.sh b/scripts/run-sonar.sh
index 529a848d8..383d03273 100755
--- a/scripts/run-sonar.sh
+++ b/scripts/run-sonar.sh
@@ -17,6 +17,9 @@ export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
cd /workspace
+git config --global --add safe.directory /workspace
+git config --global --add safe.directory /workspace/cmake
+
$HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output make build
$SONAR_SCANNER_HOME/bin/sonar-scanner \