From 8743186ac085d843eab249887c09ebee8d7a1646 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Fri, 12 Aug 2022 14:48:51 +0200 Subject: ci(sonarscan): fixes for sonar build - Configure safe directories for git Ref: HICN-741 Signed-off-by: Mauro Sardara Change-Id: I2c9da853f57ca4576fb4ad35c3ca81de575c7c65 Signed-off-by: Mauro Sardara --- scripts/run-sonar.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') 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 \ -- cgit 1.2.3-korg