We have in house Perl script for building the project. We are trying to integrate the build wrapper command into it but getting errors.
SonarQube version: 8.9 LTS
CFamily plugin version: 6.20.1.32841
Build Wrapper : we are using latest one which downloaded from : http://URL/static/cpp/build-wrapper-linux-x86.zip
Build wrapper command: build-wrapper-linux-x86-64 --out-dir /home/cm/jenkins/workspace/RAISE-SonarQubeTrial/src/build_output make clean all
When i include this build wrapper command in Perl script , I was getting below error. Please let me know how to deal build wrapper command for perl script.
syntax error at /opt/tns/cm/scripts/buildscripts-Sonar/buildScript.pl line 401, near “–out”
Can you share the buildScript.pl file? Or at least share 20 lines above and below line 401 in buildScript.pl file? I’m not a Perl expert so I can only guess. I need to see how you are invoking build-wrapper in your script. Please share the entire error stack trace as well.