I have install sonarqube on linux centos 7 but buildwrapper issue please check

build wrapper command <build-wrapper-linux-x86-64 --out-dir build_wrapper_output_directory ;cd Container;./build.sh --clean

was generated using build-wrapper version 6.32,
which does not match the analyzer version

Please download the matching version from the server

INFO: PCH: unique=0 use=0 (forceInclude=0,throughHeader=0,firstInclude=0) out of 0 (forceInclude=0,throughHeader=0)
INFO: SE: 0 out of 0
INFO: Z3 refutation rate: 0 out of 0
INFO: Subprocess(es) done in 34ms
INFO: 0/2117 files marked as unchanged
INFO: Cache: 0/0 hits, 125 bytes
INFO: 0 compilation units analyzed
INFO: ------------------------------------------------------------------------
INFO: ------------------------------------------------------------------------
INFO: Total time: 32.202s
INFO: Final Memory: 72M/247M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found empty. Please make sure that:
  * you are using the latest version of the build-wrapper and the CFamily analyzer

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<command run <<<<<<<<<<<<<<<<<<<<<<<

sonar-scanner -Dsonar.projectKey=EEFT_Software_Renonline_SCB_HK_MVP2.5_Linux_Analysis -Dsonar.projectName=EEFT_Software_Renonline_SCB_HK_MVP2.5_Linux_Analysis -Dsonar.sources=. -Dsonar.cfamily.build-wrapper-output=/var/lib/jenkins/workspace/Release_SCB_HK_MVP2.5_Linux_Builds/build_wrapper_output_directory -D"sonar.cfamily.cache.path=/var/lib/jenkins/workspace/Release_SCB_HK_MVP2.5_Linux_Builds/sonarcache" -Dson=https://sonarqube.oneeuronet.com -Dsonar.login=REDACTED -Dsonar.scm.exclusions.disabled=true -Dsonar.exclusions=/var/lib/jenkins/workspace/Release_SCB_HK_MVP2.5_Linux_Builds/

Hey there.

It looks like the logs you shared gives you a place to start, which is to update the version of the build wrapper used.

please check build wrapper version
[root@demu1-eft-jb02t Release_SCB_HK_MVP2.5_Linux_Builds]# ./sonar.sh
build-wrapper, version 6.38 (linux-x86)
Copyright (C) 2014-2022 SonarSource SA, info@sonarsource.com

Usage: build-wrapper-linux-x86-64 --out-dir
–clean flag is set.
*** Cleaning up all .so and .o files… ***
Debug=0 Valgrind=0 Oracle=0

*** Building framework

Hi colin,

i have download the matching version from the server.
wget https:/sonarqube.oneeuronet.com/static/cpp/build-wrapper-linux-x86.zip

and got the same error…

please reply i have faced some issue in configuration

@sankar927 It looks like you marked your own post as being a solution to the thread – did the issue resolve itself, or is that a mistake?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.