Ran command - build-wrapper-linux-x86-64 --out-dir build_wrapper_output_directory make clean all
Received error: make: *** No rule to make target `clean’. Stop.
The output build file is hence empty.
I am using running Sonarqube as a Jenkins-Sonarqube setup. I have tried this on Ubuntu environment: Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
Can someone please help me figure out how to run this build?
I am using Jenkins to perform the build. I choose ‘Execute SonarQube Scanner’ and send the required parameters to build my projects from there like this -->
happens before your process gets to analysis. This is a make error. That’s why I asked what your build command is when you’re not trying to analyze with SonarQube.
My background is of a security engineer and the only requirement for me to build projects is for sonarqube. Other than that, I am not issuing any build commands. If you can guide me on some other command to use instead of make, I can try that out.
Just as a note, the zip file extracted these 4 files:
build-wrapper-linux-x86-64
libinterceptor-i686.so
libinterceptor-haswell.so
libinterceptor-x86_64.so
This code has been developed by Sonarqube itself. It’s the wrapper that Sonarqube has built for C family. I have downloaded the zip file from the Sonarqube server itself which is why I have raised the question here.
To analyze C, C++, or Objective-C, you must pass the project’s normal build command to the Build Wrapper, which will run that command in a child process and eavesdrop on the child in order to gather the configuration info needed for correct/full/proper analysis.
The Build Wrapper is literally just a middle man here. The error is telling you that in your project’s make file, there’s no target named clean. So this comes back to how your project is normally built. That’s why I referred you back to the project owners.
Sure Ann. I will check that. In the meanwhile, I would like to analyse my sonarqube project by skipping this entirely. Is there any command I can pass to the scanner for this?
Can you also confirm if the files inside the zip file are just these mentioned below?
build-wrapper-linux-x86-64
libinterceptor-i686.so
libinterceptor-haswell.so
libinterceptor-x86_64.so
What languages exist in your project? You can’t analyze C, C++, Objective-C (and a few other languages) without building. If you do have other languages in your project, you can probably successfully analyze them by setting an exclusion on **/*.m,**/*.h.