No analysis results shown and No redirection to the overview page

Hello all,

i’m trying to do the integration between GitLab and Sonarqube.
The pipeline job succeed but on my Sonarqube page i get no redirection to the overiew as the description state:

“If everything is running successfully, once the analysis is complete you’ll be redirected to the Overview page of your project where the new analysis results will be displayed. This can take a few minutes.”

This is all the debug message of the job i’ve runned:

Running with gitlab-runner 17.1.0 (fe451d5a) on test HcRVa6y2r, system ID: s_a6ba190198e8 Preparing the "shell" executor 00:00 Using Shell (bash) executor... Preparing environment 00:00 Running on RP-GITLAB01... Getting source from Git repository 00:00 Fetching changes... Reinitialized existing Git repository in /home/gitlab-runner/builds/HcRVa6y2r/0/test-manuel/sed-multitel-site-manuel/.git/ Checking out 34537cf6 as detached HEAD (ref is master)... Skipping Git submodules setup Restoring cache 00:00 Checking cache for sonarqube-check-protected... Runtime platform arch=amd64 os=linux pid=1786655 revision=fe451d5a version=17.1.0 No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted. Successfully extracted cache Executing "step_script" stage of the job script 00:06 $ ssh administrator@10.86.8.12 "cd /opt/sonar-scanner/bin && sonar-scanner -Dsonar.token=$SONAR_TOKEN -Dsonar.projectKey=qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223 -X" ################################################################ #### working on SED-RM VXRAIL-SED-RM on RP-GITLAB02 ####### ################################################################ 10:41:06.323 INFO Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties 10:41:06.327 INFO Project root configuration file: NONE 10:41:06.339 INFO SonarScanner CLI 6.1.0.4477 10:41:06.341 INFO Java 17.0.11 Eclipse Adoptium (64-bit) 10:41:06.342 INFO Linux 4.18.0-513.18.1.el8_9.x86_64 amd64 10:41:06.348 DEBUG Scanner max available memory: 1 GB 10:41:06.368 DEBUG uname -m returned 'x86_64' 10:41:06.369 DEBUG Create: /home/administrator/.sonar/cache 10:41:06.370 INFO User cache: /home/administrator/.sonar/cache 10:41:06.370 DEBUG Create: /home/administrator/.sonar/cache/_tmp 10:41:06.657 DEBUG Loaded [430] system trusted certificates 10:41:06.810 DEBUG --> GET http://172.19.10.38:9000/api/v2/analysis/version 10:41:06.836 DEBUG <-- 404 http://172.19.10.38:9000/api/v2/analysis/version (24ms, 431-byte body) 10:41:06.836 DEBUG --> GET http://172.19.10.38:9000/api/server/version 10:41:06.838 DEBUG <-- 200 http://172.19.10.38:9000/api/server/version (1ms, 12-byte body) 10:41:06.840 DEBUG Extract sonar-scanner-java-library-batch in temp... 10:41:06.842 DEBUG Get bootstrap index... 10:41:06.842 DEBUG --> GET http://172.19.10.38:9000/batch/index 10:41:06.844 DEBUG <-- 200 http://172.19.10.38:9000/batch/index (1ms, 82-byte body) 10:41:06.844 DEBUG Get bootstrap completed 10:41:06.845 DEBUG Create isolated classloader... 10:41:06.848 DEBUG Start temp cleaning... 10:41:06.850 DEBUG Temp cleaning done 10:41:06.851 INFO Communicating with SonarQube Server 10.4.1.88267 10:41:06.852 DEBUG Work directory: /opt/sonar-scanner/bin/.scannerwork 10:41:06.852 DEBUG Execution execute 10:41:07.035 DEBUG Community 10.4.1.88267 10:41:07.208 INFO Load global settings 10:41:07.238 DEBUG GET 200 http://172.19.10.38:9000/api/settings/values.protobuf | time=29ms 10:41:07.264 INFO Load global settings (done) | time=57ms 10:41:07.266 INFO Server id: E8E0087D-AY7iQPzrKvDqZUU7UMYm 10:41:07.270 INFO User cache: /home/administrator/.sonar/cache 10:41:07.274 WARN sonar.plugins.downloadOnlyRequired is false, so ALL available plugins will be downloaded 10:41:07.274 INFO Loading all plugins 10:41:07.274 INFO Load plugins index 10:41:07.278 DEBUG GET 200 http://172.19.10.38:9000/api/plugins/installed | time=4ms 10:41:07.309 INFO Load plugins index (done) | time=35ms 10:41:07.309 INFO Load/download plugins 10:41:07.408 INFO Load/download plugins (done) | time=99ms 10:41:07.443 DEBUG Plugins loaded: 10:41:07.443 DEBUG * Python Code Quality and Security 4.14.0.14263 (python) 10:41:07.443 DEBUG * Clean as You Code 2.3.0.1782 (cayc) 10:41:07.443 DEBUG * Go Code Quality and Security 1.15.0.4655 (go) 10:41:07.443 DEBUG * JaCoCo 1.3.0.1538 (jacoco) 10:41:07.443 DEBUG * Kotlin Code Quality and Security 2.20.0.4382 (kotlin) 10:41:07.443 DEBUG * IaC Code Quality and Security 1.26.0.8471 (iac) 10:41:07.443 DEBUG * JavaScript/TypeScript/CSS Code Quality and Security 10.11.1.25225 (javascript) 10:41:07.444 DEBUG * Ruby Code Quality and Security 1.15.0.4655 (ruby) 10:41:07.444 DEBUG * Scala Code Quality and Security 1.15.0.4655 (sonarscala) 10:41:07.444 DEBUG * C# Code Quality and Security 9.19.0.84025 (csharp) 10:41:07.444 DEBUG * Java Code Quality and Security 7.30.0.34429 (java) 10:41:07.444 DEBUG * HTML Code Quality and Security 3.13.0.4821 (web) 10:41:07.444 DEBUG * Flex Code Quality and Security 2.12.0.4568 (flex) 10:41:07.444 DEBUG * XML Code Quality and Security 2.10.0.4108 (xml) 10:41:07.444 DEBUG * PHP Code Quality and Security 3.33.0.11274 (php) 10:41:07.444 DEBUG * Text Code Quality and Security 2.8.0.1635 (text) 10:41:07.444 DEBUG * VB.NET Code Quality and Security 9.19.0.84025 (vbnet) 10:41:07.802 INFO Process project properties 10:41:07.802 INFO Process project properties (done) | time=0ms 10:41:07.804 INFO Execute project builders 10:41:07.804 DEBUG Execute project builder: org.sonar.plugins.csharp.CSharpGlobalProtobufFileProcessor 10:41:07.805 DEBUG Execute project builder: org.sonar.plugins.vbnet.VbNetGlobalProtobufFileProcessor 10:41:07.806 INFO Execute project builders (done) | time=2ms 10:41:07.810 INFO Project key: qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223 10:41:07.810 INFO Base dir: /opt/sonar-scanner/bin 10:41:07.810 INFO Working dir: /opt/sonar-scanner/bin/.scannerwork 10:41:07.810 DEBUG Project global encoding: UTF-8, default locale: en_US 10:41:07.817 INFO Load project settings for component key: 'qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223' 10:41:07.827 DEBUG GET 200 http://172.19.10.38:9000/api/settings/values.protobuf?component=qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223 | time=10ms 10:41:07.829 INFO Load project settings for component key: 'qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223' (done) | time=12ms 10:41:07.884 DEBUG Creating module hierarchy 10:41:07.884 DEBUG Init module 'qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223' 10:41:07.884 DEBUG Base dir: /opt/sonar-scanner/bin 10:41:07.884 DEBUG Working dir: /opt/sonar-scanner/bin/.scannerwork 10:41:07.884 DEBUG Module global encoding: UTF-8, default locale: en_US 10:41:07.889 INFO Load quality profiles 10:41:07.916 DEBUG GET 200 http://172.19.10.38:9000/api/qualityprofiles/search.protobuf?project=qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223 | time=26ms 10:41:07.930 INFO Load quality profiles (done) | time=41ms 10:41:07.943 DEBUG SCM Step is disabled by configuration 10:41:07.945 INFO Load active rules 10:41:07.958 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=713ec02a-1fcb-4027-9330-93eb09af55aa&ps=500&p=1 | time=12ms 10:41:08.053 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=2d53d5a6-5ed0-4499-a9ae-9d316d4df57c&ps=500&p=1 | time=11ms 10:41:08.076 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=fedee5d6-1d64-4d52-ab2e-116f24ea9c5c&ps=500&p=1 | time=16ms 10:41:08.083 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=32feb087-747e-4d94-9441-06146de54b75&ps=500&p=1 | time=2ms 10:41:08.191 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=3ec06c82-07e0-4a96-9a6e-d3a4ed7cd2c2&ps=500&p=1 | time=107ms 10:41:08.304 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=96de7684-478d-4561-a237-cee2411e48a7&ps=500&p=1 | time=84ms 10:41:08.333 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=34111c3b-5e83-4bd4-91f4-db492e3ddfd0&ps=500&p=1 | time=17ms 10:41:08.492 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=9398a307-2104-468d-8744-c06788998567&ps=500&p=1 | time=157ms 10:41:08.525 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=0a9f723b-d123-4661-a48b-0d09643c38b8&ps=500&p=1 | time=14ms 10:41:08.543 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=88ca770f-a2f7-4451-aee4-43e17f0350b0&ps=500&p=1 | time=16ms 10:41:08.559 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=2691890e-c54f-4211-bb31-b5590a76bdd9&ps=500&p=1 | time=14ms 10:41:08.563 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=8df52c71-efff-41d0-ab10-15299176c467&ps=500&p=1 | time=3ms 10:41:08.568 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=f443814c-e273-4d35-9d79-b81bd110621a&ps=500&p=1 | time=5ms 10:41:08.619 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=761fb26e-d84f-476c-ab46-0717db6e5331&ps=500&p=1 | time=51ms 10:41:08.639 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=07795cf0-ba3d-4f28-8249-cc94bc47a95e&ps=500&p=1 | time=16ms 10:41:08.642 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=59d22f5a-e5dd-4b56-b04a-80e148d2896f&ps=500&p=1 | time=2ms 10:41:08.654 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=49a81232-8e54-47b9-babe-5e07ad8360e0&ps=500&p=1 | time=11ms 10:41:08.699 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=64c4a052-8d3c-42fc-9c6e-930dbb474683&ps=500&p=1 | time=44ms 10:41:08.729 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=710fd7ca-8361-49bb-8136-7d868187aa6a&ps=500&p=1 | time=27ms 10:41:08.743 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=96a59131-abf6-44bf-8ea6-2a2759c82172&ps=500&p=1 | time=12ms 10:41:08.835 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=17aaa7cf-3fa0-4b2e-8a4c-f3fdf1d73c48&ps=500&p=1 | time=90ms 10:41:08.902 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=419817f7-34e4-4a32-9be4-d648fdbd4149&ps=500&p=1 | time=61ms 10:41:08.930 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=35f2704b-c70d-4a2a-984d-2da2738d5148&ps=500&p=1 | time=24ms 10:41:08.945 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=15fd67f0-cdf5-4788-88d9-840244193d28&ps=500&p=1 | time=14ms 10:41:09.052 DEBUG GET 200 http://172.19.10.38:9000/api/rules/list.protobuf?qprofile=ebef789b-70cf-49da-b991-bdb740617172&ps=500&p=1 | time=107ms 10:41:09.071 INFO Load active rules (done) | time=1126ms 10:41:09.076 INFO Load analysis cache 10:41:09.079 DEBUG GET 404 http://172.19.10.38:9000/api/analysis_cache/get?project=qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223 | time=3ms 10:41:09.080 INFO Load analysis cache (404) | time=4ms 10:41:09.100 DEBUG GET 200 http://172.19.10.38:9000/api/languages/list | time=6ms 10:41:09.129 DEBUG Declared patterns of language Kubernetes were converted to sonar.lang.patterns.kubernetes : 10:41:09.130 DEBUG Declared patterns of language CSS were converted to sonar.lang.patterns.css : **/*.css,**/*.less,**/*.scss,**/*.sass 10:41:09.131 DEBUG Declared patterns of language Scala were converted to sonar.lang.patterns.scala : **/*.scala 10:41:09.131 DEBUG Declared patterns of language JSP were converted to sonar.lang.patterns.jsp : **/*.jsp,**/*.jspf,**/*.jspx 10:41:09.131 DEBUG Declared patterns of language JavaScript were converted to sonar.lang.patterns.js : **/*.js,**/*.jsx,**/*.cjs,**/*.mjs,**/*.vue 10:41:09.131 DEBUG Declared patterns of language Python were converted to sonar.lang.patterns.py : **/*.py 10:41:09.131 DEBUG Declared patterns of language Docker were converted to sonar.lang.patterns.docker : **/Dockerfile,**/*.dockerfile 10:41:09.131 DEBUG Declared patterns of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav 10:41:09.131 DEBUG Declared patterns of language HTML were converted to sonar.lang.patterns.web : **/*.html,**/*.xhtml,**/*.cshtml,**/*.vbhtml,**/*.aspx,**/*.ascx,**/*.rhtml,**/*.erb,**/*.shtm,**/*.shtml,**/*.cmp,**/*.twig 10:41:09.132 DEBUG Declared patterns of language Flex were converted to sonar.lang.patterns.flex : **/*.as 10:41:09.132 DEBUG Declared patterns of language XML were converted to sonar.lang.patterns.xml : **/*.xml,**/*.xsd,**/*.xsl,**/*.config 10:41:09.132 DEBUG Declared patterns of language JSON were converted to sonar.lang.patterns.json : **/*.json 10:41:09.132 DEBUG Declared patterns of language Text were converted to sonar.lang.patterns.text : 10:41:09.132 DEBUG Declared patterns of language VB.NET were converted to sonar.lang.patterns.vbnet : **/*.vb 10:41:09.132 DEBUG Declared patterns of language CloudFormation were converted to sonar.lang.patterns.cloudformation : 10:41:09.132 DEBUG Declared patterns of language YAML were converted to sonar.lang.patterns.yaml : **/*.yaml,**/*.yml 10:41:09.132 DEBUG Declared patterns of language Go were converted to sonar.lang.patterns.go : **/*.go 10:41:09.133 DEBUG Declared patterns of language Kotlin were converted to sonar.lang.patterns.kotlin : **/*.kt,**/*.kts 10:41:09.133 DEBUG Declared patterns of language Secrets were converted to sonar.lang.patterns.secrets : 10:41:09.133 DEBUG Declared patterns of language Ruby were converted to sonar.lang.patterns.ruby : **/*.rb 10:41:09.133 DEBUG Declared patterns of language C# were converted to sonar.lang.patterns.cs : **/*.cs,**/*.razor 10:41:09.133 DEBUG Declared patterns of language PHP were converted to sonar.lang.patterns.php : **/*.php,**/*.php3,**/*.php4,**/*.php5,**/*.phtml,**/*.inc 10:41:09.133 DEBUG Declared patterns of language Terraform were converted to sonar.lang.patterns.terraform : **/*.tf 10:41:09.133 DEBUG Declared patterns of language AzureResourceManager were converted to sonar.lang.patterns.azureresourcemanager : **/*.bicep 10:41:09.133 DEBUG Declared patterns of language TypeScript were converted to sonar.lang.patterns.ts : **/*.ts,**/*.tsx,**/*.cts,**/*.mts 10:41:09.138 INFO Preprocessing files... 10:41:09.148 INFO 0 languages detected in 2 preprocessed files 10:41:09.179 INFO Load project repositories 10:41:09.184 DEBUG GET 200 http://172.19.10.38:9000/batch/project.protobuf?key=qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223 | time=5ms 10:41:09.188 INFO Load project repositories (done) | time=9ms 10:41:09.198 DEBUG Will ignore generated code 10:41:09.199 DEBUG Will ignore generated code 10:41:09.210 DEBUG Available languages: 10:41:09.210 DEBUG * Python => "py" 10:41:09.210 DEBUG * Go => "go" 10:41:09.210 DEBUG * Kotlin => "kotlin" 10:41:09.210 DEBUG * Terraform => "terraform" 10:41:09.210 DEBUG * CloudFormation => "cloudformation" 10:41:09.210 DEBUG * Kubernetes => "kubernetes" 10:41:09.211 DEBUG * Docker => "docker" 10:41:09.211 DEBUG * AzureResourceManager => "azureresourcemanager" 10:41:09.211 DEBUG * YAML => "yaml" 10:41:09.211 DEBUG * JSON => "json" 10:41:09.211 DEBUG * JavaScript => "js" 10:41:09.211 DEBUG * TypeScript => "ts" 10:41:09.211 DEBUG * CSS => "css" 10:41:09.211 DEBUG * Ruby => "ruby" 10:41:09.211 DEBUG * Scala => "scala" 10:41:09.211 DEBUG * C# => "cs" 10:41:09.211 DEBUG * Java => "java" 10:41:09.211 DEBUG * HTML => "web" 10:41:09.211 DEBUG * JSP => "jsp" 10:41:09.211 DEBUG * Flex => "flex" 10:41:09.211 DEBUG * XML => "xml" 10:41:09.211 DEBUG * PHP => "php" 10:41:09.211 DEBUG * Text => "text" 10:41:09.211 DEBUG * Secrets => "secrets" 10:41:09.211 DEBUG * VB.NET => "vbnet" 10:41:09.212 INFO Indexing files... 10:41:09.212 INFO Project configuration: 10:41:09.216 DEBUG 'sonar-scanner' indexed with no language 10:41:09.219 DEBUG 'sonar-scanner-debug' indexed with no language 10:41:09.221 INFO 2 files indexed 10:41:09.221 INFO ------------- Run sensors on module qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223 10:41:09.286 INFO Load metrics repository 10:41:09.292 DEBUG GET 200 http://172.19.10.38:9000/api/metrics/search?ps=500&p=1 | time=5ms 10:41:09.298 INFO Load metrics repository (done) | time=12ms 10:41:09.905 DEBUG Added 304 checks for language='ts', repository='typescript' 10:41:09.909 DEBUG Added 303 checks for language='js', repository='javascript' 10:41:10.524 DEBUG 'JavaSensor' skipped because there is no related file in current project 10:41:10.524 DEBUG 'Import external issues report' skipped because one of the required properties is missing 10:41:10.525 DEBUG 'Python Sensor' skipped because there is no related file in current project 10:41:10.525 DEBUG 'Cobertura Sensor for Python coverage' skipped because there is no related file in current project 10:41:10.525 DEBUG 'PythonXUnitSensor' skipped because there is no related file in current project 10:41:10.525 DEBUG 'Import of Pylint issues' skipped because there is no related file in current project 10:41:10.525 DEBUG 'Import of Bandit issues' skipped because there is no related file in current project 10:41:10.525 DEBUG 'Import of Flake8 issues' skipped because there is no related file in current project 10:41:10.526 DEBUG 'Import of Mypy issues' skipped because there is no related file in current project 10:41:10.526 DEBUG 'Import of Ruff issues' skipped because there is no related file in current project 10:41:10.526 DEBUG 'Code Quality and Security for Go' skipped because there is no related file in current project 10:41:10.526 DEBUG 'Go Unit Test Report' skipped because there is no related file in current project 10:41:10.526 DEBUG 'Go Cover sensor for Go coverage' skipped because there is no related file in current project 10:41:10.527 DEBUG 'Import of go vet issues' skipped because there is no related file in current project 10:41:10.527 DEBUG 'Import of Golint issues' skipped because there is no related file in current project 10:41:10.527 DEBUG 'Import of GoMetaLinter issues' skipped because there is no related file in current project 10:41:10.527 DEBUG 'Import of GolangCI-Lint issues' skipped because there is no related file in current project 10:41:10.527 DEBUG 'Kotlin Sensor' skipped because there is no related file in current project 10:41:10.527 DEBUG 'Gradle Sensor' skipped because there is no related file in current project 10:41:10.527 DEBUG 'KotlinSurefireSensor' skipped because there is no related file in current project 10:41:10.528 DEBUG 'Import of detekt issues' skipped because there is no related file in current project 10:41:10.528 DEBUG 'Import of Android Lint issues' skipped because one of the required properties is missing 10:41:10.528 DEBUG 'Import of ktlint issues' skipped because there is no related file in current project 10:41:10.528 DEBUG 'IaC Terraform Sensor' skipped because there is no related file in current project 10:41:10.529 DEBUG 'IaC CloudFormation Sensor' skipped because there is no related file in current project 10:41:10.529 DEBUG 'IaC Kubernetes Sensor' skipped because there is no related file in current project 10:41:10.529 DEBUG 'IaC AzureResourceManager Sensor' skipped because there is no related file in current project 10:41:10.529 DEBUG 'JavaScript/TypeScript analysis' skipped because there is no related file in current project 10:41:10.529 DEBUG 'JavaScript inside YAML analysis' skipped because there is no related file in current project 10:41:10.529 DEBUG 'JavaScript inside HTML analysis' skipped because there is no related file in current project 10:41:10.529 DEBUG 'JavaScript/TypeScript Coverage' skipped because there is no related file in current project 10:41:10.530 DEBUG 'Import of ESLint issues' skipped because one of the required properties is missing 10:41:10.530 DEBUG 'Import of TSLint issues' skipped because one of the required properties is missing 10:41:10.530 DEBUG 'CSS Metrics' skipped because there is no related file in current project 10:41:10.530 DEBUG 'Import of stylelint issues' skipped because one of the required properties is missing 10:41:10.531 DEBUG 'Ruby Sensor' skipped because there is no related file in current project 10:41:10.531 DEBUG 'Import of RuboCop issues' skipped because there is no related file in current project 10:41:10.531 DEBUG 'SimpleCov Sensor for Ruby coverage' skipped because there is no related file in current project 10:41:10.531 DEBUG 'Scala Sensor' skipped because there is no related file in current project 10:41:10.531 DEBUG 'Scoverage sensor for Scala coverage' skipped because there is no related file in current project 10:41:10.532 DEBUG 'Import of Scalastyle issues' skipped because there is no related file in current project 10:41:10.532 DEBUG 'Import of Scapegoat issues' skipped because there is no related file in current project 10:41:10.532 DEBUG 'Import of Checkstyle issues' skipped because there is no related file in current project 10:41:10.532 DEBUG 'Import of PMD issues' skipped because there is no related file in current project 10:41:10.533 DEBUG 'Import of SpotBugs issues' skipped because there is no related file in current project 10:41:10.533 DEBUG 'SurefireSensor' skipped because there is no related file in current project 10:41:10.533 DEBUG 'Removed properties sensor' skipped because there is no related file in current project 10:41:10.533 DEBUG 'Flex' skipped because there is no related file in current project 10:41:10.533 DEBUG 'Flex Cobertura' skipped because there is no related file in current project 10:41:10.534 DEBUG 'XML Sensor' skipped because there is no related file in current project 10:41:10.534 DEBUG 'PHP sensor' skipped because there is no related file in current project 10:41:10.534 DEBUG 'Analyzer for "php.ini" files' skipped because there is no related file in current project 10:41:10.534 DEBUG 'PHPUnit report sensor' skipped because there is no related file in current project 10:41:10.534 DEBUG 'Import of PHPStan issues' skipped because there is no related file in current project 10:41:10.534 DEBUG 'Import of Psalm issues' skipped because there is no related file in current project 10:41:10.536 DEBUG 'Generic Test Executions Report' skipped because one of the required properties is missing 10:41:10.537 DEBUG Sensors : JaCoCo XML Report Importer -> CSS Rules -> C# Project Type Information -> C# Analysis Log -> C# Properties -> HTML -> TextAndSecretsSensor -> VB.NET Project Type Information -> VB.NET Analysis Log -> VB.NET Properties -> IaC Docker Sensor 10:41:10.537 INFO Sensor JaCoCo XML Report Importer [jacoco] 10:41:10.538 INFO 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml 10:41:10.539 INFO No report imported, no coverage information will be imported by JaCoCo XML Report Importer 10:41:10.539 INFO Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms 10:41:10.539 INFO Sensor CSS Rules [javascript] 10:41:10.539 INFO No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped. 10:41:10.539 INFO Sensor CSS Rules [javascript] (done) | time=0ms 10:41:10.539 INFO Sensor C# Project Type Information [csharp] 10:41:10.540 INFO Sensor C# Project Type Information [csharp] (done) | time=1ms 10:41:10.540 INFO Sensor C# Analysis Log [csharp] 10:41:10.550 DEBUG Project 'qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223': Property missing: 'sonar.cs.analyzer.projectOutPaths'. No protobuf files will be loaded for this project. 10:41:10.550 INFO Sensor C# Analysis Log [csharp] (done) | time=10ms 10:41:10.551 INFO Sensor C# Properties [csharp] 10:41:10.551 DEBUG Project 'qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223': Property missing: 'sonar.cs.analyzer.projectOutPaths'. No protobuf files will be loaded for this project. 10:41:10.551 DEBUG Project 'qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223': No Roslyn issues reports have been found. 10:41:10.551 INFO Sensor C# Properties [csharp] (done) | time=0ms 10:41:10.551 INFO Sensor HTML [web] 10:41:10.552 INFO Sensor HTML [web] (done) | time=1ms 10:41:10.553 INFO Sensor TextAndSecretsSensor [text] 10:41:10.878 INFO Sensor TextAndSecretsSensor [text] (done) | time=325ms 10:41:10.878 INFO Sensor VB.NET Project Type Information [vbnet] 10:41:10.878 INFO Sensor VB.NET Project Type Information [vbnet] (done) | time=0ms 10:41:10.878 INFO Sensor VB.NET Analysis Log [vbnet] 10:41:10.889 DEBUG Project 'qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223': Property missing: 'sonar.vbnet.analyzer.projectOutPaths'. No protobuf files will be loaded for this project. 10:41:10.889 INFO Sensor VB.NET Analysis Log [vbnet] (done) | time=11ms 10:41:10.889 INFO Sensor VB.NET Properties [vbnet] 10:41:10.889 DEBUG Project 'qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223': Property missing: 'sonar.vbnet.analyzer.projectOutPaths'. No protobuf files will be loaded for this project. 10:41:10.890 DEBUG Project 'qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223': No Roslyn issues reports have been found. 10:41:10.890 INFO Sensor VB.NET Properties [vbnet] (done) | time=1ms 10:41:10.890 INFO Sensor IaC Docker Sensor [iac] 10:41:10.894 INFO 0 source files to be analyzed 10:41:10.947 INFO 0/0 source files have been analyzed 10:41:10.947 INFO Sensor IaC Docker Sensor [iac] (done) | time=57ms 10:41:10.951 INFO ------------- Run sensors on project 10:41:11.003 DEBUG 'Generic Coverage Report' skipped because one of the required properties is missing 10:41:11.003 DEBUG 'Import external issues report from SARIF file.' skipped because one of the required properties is missing 10:41:11.003 DEBUG 'C#' skipped because there is no related file in current project 10:41:11.003 DEBUG 'C# File Caching Sensor' skipped because there is no related file in current project 10:41:11.004 DEBUG 'C# Tests Coverage Report Import' skipped because there is no related file in current project 10:41:11.004 DEBUG '[Deprecated] C# Integration Tests Coverage Report Import' skipped because there is no related file in current project 10:41:11.004 DEBUG 'C# Unit Test Results Import' skipped because there is no related file in current project 10:41:11.004 DEBUG 'VB.NET' skipped because there is no related file in current project 10:41:11.004 DEBUG 'VB.NET File Caching Sensor' skipped because there is no related file in current project 10:41:11.005 DEBUG 'VB.NET Tests Coverage Report Import' skipped because there is no related file in current project 10:41:11.005 DEBUG '[Deprecated] VB.NET Integration Tests Coverage Report Import' skipped because there is no related file in current project 10:41:11.005 DEBUG 'VB.NET Unit Test Results Import' skipped because there is no related file in current project 10:41:11.005 DEBUG 'Java CPD Block Indexer' skipped because there is no related file in current project 10:41:11.005 DEBUG Sensors : Analysis Warnings import -> Zero Coverage Sensor 10:41:11.006 INFO Sensor Analysis Warnings import [csharp] 10:41:11.006 INFO Sensor Analysis Warnings import [csharp] (done) | time=0ms 10:41:11.006 INFO Sensor Zero Coverage Sensor 10:41:11.009 INFO Sensor Zero Coverage Sensor (done) | time=3ms 10:41:11.009 INFO SCM Publisher is disabled 10:41:11.010 INFO CPD Executor Calculating CPD for 0 files 10:41:11.011 INFO CPD Executor CPD calculation finished (done) | time=0ms 10:41:11.075 INFO Analysis report generated in 57ms, dir size=189.4 kB 10:41:11.084 INFO Analysis report compressed in 9ms, zip size=18.7 kB 10:41:11.085 INFO Analysis report generated in /opt/sonar-scanner/bin/.scannerwork/scanner-report 10:41:11.085 DEBUG Upload report 10:41:11.135 DEBUG POST 200 http://172.19.10.38:9000/api/ce/submit?projectKey=qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223 | time=50ms 10:41:11.138 INFO Analysis report uploaded in 53ms 10:41:11.139 DEBUG Report metadata written to /opt/sonar-scanner/bin/.scannerwork/report-task.txt 10:41:11.139 INFO ANALYSIS SUCCESSFUL, you can find the results at: http://172.19.10.38:9000/dashboard?id=qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223 10:41:11.139 INFO Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report 10:41:11.139 INFO More about the report processing at http://172.19.10.38:9000/api/ce/task?id=a334fbec-8db8-446c-b5b3-784839beca5b 10:41:11.142 DEBUG Post-jobs : 10:41:11.146 INFO Analysis total time: 3.664 s 10:41:11.147 INFO EXECUTION SUCCESS 10:41:11.148 INFO Total time: 4.827s Saving cache for successful job 00:00 Creating cache sonarqube-check-protected... Runtime platform arch=amd64 os=linux pid=1786736 revision=fe451d5a version=17.1.0 WARNING: .sonar/cache: no matching files. Ensure that the artifact path is relative to the working directory (/home/gitlab-runner/builds/HcRVa6y2r/0/test-manuel/sed-multitel-site-manuel) Archive is up to date! Created cache Cleaning up project directory and file based variables 00:00 Job succeeded

Can you help me with this?
Thanks so much.

Sonarqube Version 10.4.1 (build 88267)

What do you see when you go to this link?

Hi @Colin

it goes to my project on SonarQube but it does not show the report:

Thanks. Can you do me a favor and update your original post with logs that actually contain line breaks? It’s pretty impossible to read at this point. You can also upload a file if it’s easier to direct the scanner output to a file.

Sure here it is.
logs.txt (28.9 KB)

It looks like your scan is getting kicked off not from your project repo, but the installation directory of the sonar scanner.

11:58:18.847 INFO Base dir: /opt/sonar-scanner/bin

Can you share your GitLab CI YML here?

stages:
    - sonarqube-check

sonarqube-check:
  stage: sonarqube-check
  image: 
    name: sonarsource/sonar-scanner-cli:5.0
    entrypoint: [""]
  variables:
    SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar"  # Defines the location of the analysis task cache
    GIT_DEPTH: "0"  # Tells git to fetch all the branches of the project, required by the analysis task
    SONAR_HOST_URL: "http://172.19.10.38:9000"
    SONAR_TOKEN: "REDACTED"
  cache:
    key: "${CI_JOB_NAME}"
    paths:
      - .sonar/cache

  script:
    - ssh administrator@10.86.8.12 "cd /opt/sonar-scanner/bin && sonar-scanner -Dsonar.token=$SONAR_TOKEN -Dsonar.projectKey=qvm87887_sed-multitel-site-manuel_a405fdbe-87ec-473f-98f2-2e2344bfe223 -Dsonar.scm.exclusions.disabled=true -Dsonar.sources=. -Dsonar.cfamily.build-wrapper-output=bw-output -X"

  allow_failure: true
  only:
    - merge_requests
    - master
    - main
    - develop

I’ve applied a few changes to this one.

I don’t understand why you have both the Docker image and a separate task that is SSHing into another machine to perform the scan. The scan should be happening within the GitLab CI environment, with the code downloaded into the pipeline (like any other pipeline).

What’s going on there?

Typically, your GitLab CI file would look like this, assuming SONAR_HOST_URL is set as a pipeline variable and a sonar-project.properties file exists defining sonar.projectKey

image: 
    name: sonarsource/sonar-scanner-cli:11
    entrypoint: [""]

variables:
  SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar"  # Defines the location of the analysis task cache
  GIT_DEPTH: "0"  # Tells git to fetch all the branches of the project, required by the analysis task

stages:
  - sonarqube-check

sonarqube-check:
  stage: sonarqube-check
  
  script: 
    - sonar-scanner -Dsonar.host.url="${SONAR_HOST_URL}"
  allow_failure: true
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
    - if: $CI_COMMIT_BRANCH == 'master'
    - if: $CI_COMMIT_BRANCH == 'main'
    - if: $CI_COMMIT_BRANCH == 'develop'

No SSHing anywhere else.

You might find it helpful to refer to the built-in analysis tutorial (delete your existing project and recreate it to gain access to it)

I used the ssh command because i’ve installed sonarqube and sonar-scanner on a different machine.
So, i have vm-1 with GitLab and vm-2 with Sonarqube + sonar-scanner on it.

If i use the the .yml you written me i will get in the logs “sonar-scanner command not found”

Apologize if i’m doing noob mistakes but it is the first time i manage these services.

The point of using the Docker image is so that you can run the Scanner from your Gitlab runner, in the same context your code is downloaded!

Are you using a self-hosted Gitlab runner? You may be running into this issue.

thank you so much @Colin for helping me.
Is there a viable way to successfully use the Shell executor in my setup?

The main reason I am unable to use Docker is that SonarQube and GitLab are deployed in a corporate production environment with strict firewall rules. These rules prevent Docker from downloading the necessary images, making Docker an impractical choice in this context.

While it’s not ideal, I think you could adapt an example like this that doesn’t use Docker at all (it’s designed for C/C++ analysis which doesn’t use docker), and uses curl to download the sonar-scanner binaries. I assume you have access to binaries.sonarsource.com or some other local server you can download the scanner from in your build environment.

You can remove the entire build block and anything related to the build-wrapper from this example. The point is to show off using curl to download the sonar scanner and then execute it without using docker.