I am trying to introduce sonarqube to our pipeline but having some problems when trying to automate and run as part of our pipeline. I tested first locally and worked fine. Once I moved to the pipeline we have, I started having some problems. Every time I am running from my CI/CD, I am getting this message in my sonarqube project The main branch of this project is empty. .
I run a number of tests and could not make it work from the CI/CD at all, just from my local. Once I run using “-X”, I noticed small difference:
00:58:07.362 INFO: Analyzing 5 typescript file(s) with the following configuration file /xyz/xyz/xyz/tsconfig.json
00:58:07.387 DEBUG: Starting external process
node --max-old-space-size=2048 /xyz/xyz/xyz/.scannerwork/sonarts-bundle/node_modules/tslint-sonarts/bin/tsrunner
00:58:24.662 INFO: 5 files analyzed out of 5
00:58:24.921 INFO: Sensor SonarTS [typescript] (done) | time=18885ms
Ci/CD (nor working)
14:25:17.605 INFO: Analyzing 5 typescript file(s) with the following configuration file /abc/abc/abc/tsconfig.json
14:25:17.620 DEBUG: Starting external process
node --max-old-space-size=2048 /abc/abc/abc/.scannerwork/sonarts-bundle/node_modules/tslint-sonarts/bin/tsrunner
|14:25:17.783 INFO: Sensor SonarTS [typescript] (done) | time=369ms|
As you can see, when running from my CI/CD, it doesn’t show the message about the 5 files analysed.
Is there anything we missing here ?
Thanks in advance,