Hi,
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
→ SonarQube Version 8.9.10 (build 61524)
→ SonarScanner SonarScanner 4.8.0.2856
Getting the below error in one of our project I check the logs didn’t find the version related data any hints what could be the cause of this Issue and we ,can handle it.
Error: 09:44:23.456 ERROR: Error during SonarScanner execution
" -Dsonar.pullrequest.key=28 -Dsonar.pullrequest.branch=feat/wi_CC++_CI_UDT -Dsonar.pullrequest.base=develop" is not a valid project version. The maximum length is 100 characters.
**Log reference:
"$SUBST_DRIVE//TOOLS/CTC_Coverage/sonar-scanner/conf/sonar-scanner.properties"e[0;m
e[32;1m$ sonar-scanner ${SONAR_ARGS} -Xe[0;m
09:43:53.657 INFO: Scanner configuration file: X:\\TOOLS\CTC_coverage\sonar-scanner\bin\..\conf\sonar-scanner.properties
09:43:53.663 INFO: Project root configuration file: NONE
09:43:53.682 INFO: SonarScanner 4.8.0.2856
09:43:53.682 INFO: Java 11.0.17 Eclipse Adoptium (64-bit)
09:43:53.689 INFO: Windows Server 2016 10.0 amd64
09:43:53.863 DEBUG: keyStore is :
09:43:53.863 DEBUG: keyStore type is : pkcs12
09:43:53.863 DEBUG: keyStore provider is :
09:43:53.869 DEBUG: init keystore
09:43:53.869 DEBUG: init keymanager of type SunX509
09:43:54.778 DEBUG: Create: C:\Users\\.sonar\cache
09:43:54.789 INFO: User cache: C:\Users\\.sonar\cache
09:43:54.789 DEBUG: Create: C:\Users\\.sonar\cache\_tmp
09:43:54.793 DEBUG: Extract sonar-scanner-api-batch in temp...
09:43:54.799 DEBUG: Get bootstrap index...
09:43:54.799 DEBUG: Download: https:///batch/index
09:43:55.258 DEBUG: Get bootstrap completed
09:43:55.265 DEBUG: Create isolated classloader...
09:43:55.362 DEBUG: Start temp cleaning...
09:44:15.233 DEBUG: Temp cleaning done
09:44:15.233 DEBUG: Execution getVersion
09:44:15.276 INFO: Analyzing on SonarQube server 8.9.10
09:44:15.276 INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
09:44:15.276 DEBUG: Work directory: X:\\ANI\.scannerwork
09:44:15.276 DEBUG: Execution execute
09:44:15.620 DEBUG: Community 8.9.10.61524
09:44:15.905 INFO: Load global settings
09:44:16.279 DEBUG: GET 200 https:///api/settings/values.protobuf | time=370ms
09:44:16.397 INFO: Load global settings (done) | time=492ms
09:44:16.422 INFO: Server id: ABACFDA2-AWOCiNgZV4clcPV5mXzS
09:44:16.425 INFO: User cache: C:\Users\\.sonar\cache
09:44:16.428 INFO: Load/download plugins
09:44:16.428 INFO: Load plugins index
09:44:16.464 DEBUG: GET 200 https:///api/plugins/installed | time=36ms
09:44:16.501 INFO: Load plugins index (done) | time=73ms
09:44:17.343 INFO: Load/download plugins (done) | time=915ms
09:44:17.883 DEBUG: Plugins:
09:44:17.883 DEBUG: * CSS Code Quality and Security 1.4.2.2002 (cssfamily)
09:44:17.883 DEBUG: * SQL language plugin 1.3.0 (sql)
09:44:17.884 DEBUG: * Scala Code Quality and Security 1.8.3.2219 (sonarscala)
09:44:17.884 DEBUG: * C# Code Quality and Security 8.22.0.31243 (csharp)
09:44:17.884 DEBUG: * Jazz RTC 1.3 (scmjazzrtc)
09:44:17.884 DEBUG: * Java Code Quality and Security 7.3.0.27589 (java)
09:44:17.884 DEBUG: * Rust language analyzer 0.1.0 (communityrust)
09:44:17.884 DEBUG: * HTML Code Quality and Security 3.4.0.2754 (web)
09:44:17.884 DEBUG: * Flex Code Quality and Security 2.6.1.2564 (flex)
09:44:17.884 DEBUG: * XML Code Quality and Security 2.2.0.2973 (xml)
09:44:17.884 DEBUG: * Perl 0.5.2 (perl)
09:44:17.884 DEBUG: * SonarTS 2.1.0.4362 (typescript)
09:44:17.884 DEBUG: * Checkstyle 10.3.2 (checkstyle)
09:44:17.884 DEBUG: * Csv export plugin 0.4.2 (csvexport)
09:44:17.885 DEBUG: * VB.NET Code Quality and Security 8.22.0.31243 (vbnet)
09:44:17.885 DEBUG: * Community Branch Plugin 1.8.2 (communityBranchPlugin)
09:44:17.885 DEBUG: * Ada 19.1 (ada)
09:44:17.885 DEBUG: * YAML Analyzer 1.7.0 (yaml)
09:44:17.885 DEBUG: * Delphi 1.0.3 (delphi)
09:44:17.885 DEBUG: * C++ (Community) 2.0.7.3119 (cxx)
09:44:17.885 DEBUG: * Python Code Quality and Security 3.4.1.8066 (python)
09:44:17.885 DEBUG: * Go Code Quality and Security 1.8.3.2219 (go)
09:44:17.885 DEBUG: * JaCoCo 1.1.1.1157 (jacoco)
09:44:17.885 DEBUG: * Kotlin Code Quality and Security 1.8.3.2219 (kotlin)
09:44:17.885 DEBUG: * ShellCheck Analyzer 2.5.0 (shellcheck)
09:44:17.885 DEBUG: * JavaScript/TypeScript Code Quality and Security 7.4.4.15624 (javascript)
09:44:17.886 DEBUG: * Ruby Code Quality and Security 1.8.3.2219 (ruby)
09:44:17.886 DEBUG: * Groovy 1.8 (groovy)
09:44:17.886 DEBUG: * PHP Code Quality and Security 3.17.0.7439 (php)
09:44:17.886 DEBUG: * ReSharperCLT 1.2.0.202013 (ReSharperCLT)
09:44:17.886 DEBUG: * SVG Badges 3.0.2-SNAPSHOT (status)
09:44:20.069 INFO: Process project properties
09:44:20.093 INFO: Process project properties (done) | time=24ms
09:44:20.093 INFO: Execute project builders
09:44:20.094 DEBUG: Execute project builder: org.sonar.plugins.csharp.CSharpGlobalProtobufFileProcessor
09:44:20.094 DEBUG: Execute project builder: org.sonar.plugins.vbnet.VbNetGlobalProtobufFileProcessor
09:44:20.095 INFO: Execute project builders (done) | time=2ms
09:44:20.097 INFO: Project key: org..mo.mm.tgmt.tg30_obcu_atp.ani
09:44:20.101 INFO: Base dir: X:\\ANI
09:44:20.101 INFO: Working dir: X:\\ANI\.scannerwork
09:44:20.101 DEBUG: Project global encoding: windows-1252, default locale: en_US
09:44:20.103 DEBUG: Creating module hierarchy
09:44:20.103 DEBUG: Init module 'TGMT//ANI'
09:44:20.104 DEBUG: Base dir: X:\\ANI
09:44:20.104 DEBUG: Working dir: X:\\ANI\.scannerwork
09:44:20.105 DEBUG: Module global encoding: windows-1252, default locale: en_US
09:44:20.310 INFO: Load project settings for component key: 'org..mo.mm.tgmt.tg30_obcu_atp.ani'
09:44:20.381 DEBUG: GET 200 https:///api/settings/values.protobuf?component=org..mo.mm.tgmt.tg30_obcu_atp.ani | time=71ms
09:44:20.415 INFO: Load project settings for component key: 'org..mo.mm.tgmt.tg30_obcu_atp.ani' (done) | time=105ms
09:44:20.446 INFO: Load project branches
09:44:20.505 DEBUG: GET 200 https:///api/project_branches/list?project=org..mo.mm.tgmt.tg30_obcu_atp.ani | time=59ms
09:44:20.521 INFO: Load project branches (done) | time=75ms
09:44:20.524 INFO: Load project pull requests
09:44:20.582 DEBUG: GET 200 https:///api/project_pull_requests/list?project=org..mo.mm.tgmt.tg30_obcu_atp.ani | time=58ms
09:44:20.629 INFO: Load project pull requests (done) | time=106ms
09:44:20.629 INFO: Load branch configuration
09:44:20.645 INFO: Load branch configuration (done) | time=16ms
09:44:20.691 DEBUG: Available languages:
09:44:20.691 DEBUG: * CSS => "css"
09:44:20.691 DEBUG: * SQL => "sql"
09:44:20.691 DEBUG: * Scala => "scala"
09:44:20.691 DEBUG: * C# => "cs"
09:44:20.691 DEBUG: * Java => "java"
09:44:20.691 DEBUG: * Rust => "rust"
09:44:20.691 DEBUG: * HTML => "web"
09:44:20.691 DEBUG: * JSP => "jsp"
09:44:20.691 DEBUG: * Flex => "flex"
09:44:20.691 DEBUG: * XML => "xml"
09:44:20.692 DEBUG: * Perl => "perl"
09:44:20.692 DEBUG: * VB.NET => "vbnet"
09:44:20.692 DEBUG: * Ada => "ada"
09:44:20.692 DEBUG: * YAML => "yaml"
09:44:20.692 DEBUG: * Delphi => "delph"
09:44:20.692 DEBUG: * CXX => "cxx"
09:44:20.692 DEBUG: * Python => "py"
09:44:20.692 DEBUG: * Go => "go"
09:44:20.692 DEBUG: * Kotlin => "kotlin"
09:44:20.692 DEBUG: * Shell => "shell"
09:44:20.692 DEBUG: * JavaScript => "js"
09:44:20.692 DEBUG: * TypeScript => "ts"
09:44:20.692 DEBUG: * Ruby => "ruby"
09:44:20.692 DEBUG: * Groovy => "grvy"
09:44:20.692 DEBUG: * PHP => "php"
09:44:20.698 INFO: Auto-configuring with CI 'Gitlab CI'
09:44:20.703 INFO: Load quality profiles
09:44:20.802 DEBUG: GET 200 https:///api/qualityprofiles/search.protobuf?project=org..mo.mm.tgmt.tg30_obcu_atp.ani | time=97ms
09:44:20.842 INFO: Load quality profiles (done) | time=139ms
09:44:20.842 INFO: Auto-configuring with CI 'Gitlab CI'
09:44:20.842 INFO: Load active rules
09:44:20.889 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AW26xfwU6EYksYxG6CYP&ps=500&p=1 | time=47ms
09:44:21.041 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AW26xf2L6EYksYxG6CZF&ps=500&p=1 | time=47ms
09:44:21.068 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWFBW6715mCEsbOWUkBa&ps=500&p=1 | time=19ms
09:44:21.179 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWFBT206YM4K7CVVYylx&ps=500&p=1 | time=111ms
09:44:21.306 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWFBW7Wa5mCEsbOWUkCC&ps=500&p=1 | time=97ms
09:44:21.379 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXxJ9JtX-lVRnPrgCSxn&ps=500&p=1 | time=42ms
09:44:21.428 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsa_lbRYnfQwsWiDtyZ&ps=500&p=1 | time=34ms
09:44:21.635 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXpcdHI-yQfe_TbFOfJc&ps=500&p=1 | time=180ms
09:44:21.728 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWFBW9yH5mCEsbOWUkuI&ps=500&p=1 | time=46ms
09:44:21.789 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWFBW9005mCEsbOWUkva&ps=500&p=1 | time=51ms
09:44:21.831 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWFBW9zu5mCEsbOWUkub&ps=500&p=1 | time=36ms
09:44:21.926 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXQv1xYPODNlxPQRtyon&ps=500&p=1 | time=90ms
09:44:22.007 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AW26xgcg6EYksYxG6ChV&ps=500&p=1 | time=66ms
09:44:22.076 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWFBW-me5mCEsbOWUk09&ps=500&p=1 | time=56ms
09:44:22.143 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXYh_8w9FZVYMlBdv_7s&ps=500&p=1 | time=63ms
09:44:22.206 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXekwiibKwzMa4rlq0_0&ps=500&p=1 | time=63ms
09:44:22.343 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsaAV6-nN5ZA4YpSWrW&ps=500&p=1 | time=126ms
09:44:22.529 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsaAV6-nN5ZA4YpSWrW&ps=500&p=2 | time=139ms
09:44:22.576 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AW26xf4Y6EYksYxG6CaD&ps=500&p=1 | time=47ms
09:44:22.631 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWcrvlpDO7JGH4fBGpHB&ps=500&p=1 | time=55ms
09:44:22.675 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AW26xgAr6EYksYxG6CcM&ps=500&p=1 | time=36ms
09:44:22.763 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXEwHJNKmg67ppS6E7Sn&ps=500&p=1 | time=79ms
09:44:22.836 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXMYcRq11j9NiW6RspVe&ps=500&p=1 | time=63ms
09:44:23.177 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXjJpJWmkN-uWtWkwflR&ps=500&p=1 | time=341ms
09:44:23.269 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWFBW97W5mCEsbOWUkxT&ps=500&p=1 | time=76ms
09:44:23.375 DEBUG: GET 200 https:///api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AWFBW-0C5mCEsbOWUk4A&ps=500&p=1 | time=90ms
09:44:23.404 INFO: Load active rules (done) | time=2562ms
09:44:23.434 INFO: ------------------------------------------------------------------------
09:44:23.434 INFO: EXECUTION FAILURE
09:44:23.434 INFO: ------------------------------------------------------------------------
09:44:23.435 INFO: Total time: 29.824s
09:44:23.456 INFO: Final Memory: 8M/34M
09:44:23.456 INFO: ------------------------------------------------------------------------
09:44:23.456 ERROR: Error during SonarScanner execution
" -Dsonar.pullrequest.key=28 -Dsonar.pullrequest.branch=feat/wi_1_CTC++_CI_UDT -Dsonar.pullrequest.base=develop" is not a valid project version. The maximum length is 100 characters.
Let me know if any input is required from my end.
Regards