SonarQube 8.4.1 Scanner for C/C++ jenkins pipeline with cygwin, mingw, and visual studio.
I working with an old build that needs a specific build process. The make is called in the cygwin environment. However, I am using mingw for gcc so that the native windows libraries are used. In addition, the make process will then also build a Visual Studio project as part of the build solution. This pipeline builds as planned in Jenkins and outputs a 64-Bit solution.
Now am trying to get the C/C++ scanner working. Here is the error output that I am seeing.
11:05:34 + uname -a 11:05:34 CYGWIN_NT-10.0 wilfred 3.1.4(0.340/5/3) 2020-02-19 08:49 x86_64 Cygwin
11:05:34 + build-wrapper-linux-x86-64 --out-dir build_wrapper_output_directory make
11:05:34 C:/Jenkins/workspace/@tmp/durable-9ababe31/script.sh: line 20: /cygdrive/c/sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64: cannot execute binary file: Exec format error
The build wrapper is in the PATH.