Hi Colin
Thank you for the quick response. I’m a bit disappointed to see that the feature is marked as available in the main documentation, yet it’s not actually implemented in the scanner.
In our Bitbucket → Jenkins setup, some builds are triggered after a PR is merged, so we don’t have any actual pull request analysis in place. However, SonarQube is occasionally detecting these builds as incremental PR scans, which is unexpected.
I’m currently investigating how to disable this unintended behavior, as it’s interfering with our new code
detection. This impacts our ability to enforce quality gates and fully leverage the product as intended.
Below is a sanitized snippet of the background task, with sensitive information removed. As you can see, there is no sonar.pullrequest.base
configuration, and we’re not applying any PR-specific parameters manually.
The only parameters passed to the scanner during branch builds are:
/k:xxxx
/d:sonar.branch.name=xxxxx
/d:sonar.scanner.scanAll=false
/v:xxxxx
/d:sonar.analysisCache.enabled=false
/d:sonar.inclusions=**/*.cs
/d:sonar.coverage.exclusions=**/*
I have a few questions:
- Is there a workaround to explicitly disable PR-related scanning, given that we don’t use it at all?
- Is there any way to raise the priority or visibility of this issue: SCAN4NET-184?
- As a paid customer, is there a dedicated escalation channel other than the community forum?
Thanks again for your support.
Regards,
Edgar
Log:
Plugins:
Bundled analyzers:
- JaCoCo 1.3.0.1538 (jacoco)
- IaC Code Quality and Security 1.44.0.14670 (iacenterprise)
- IaC Code Quality and Security 1.44.0.14670 (iac)
- Text Code Quality and Security 2.21.1.5779 (textdeveloper)
- Clean as You Code 2.4.0.2018 (cayc)
Global server settings:
- sonar.abap.file.suffixes=.abap,.ab4,.flow,.asprog
- sonar.auth.saml.enabled=true
- sonar.auth.saml.loginUrl=xxxxxx
- sonar.auth.saml.providerId=xxxxxxx
- sonar.auth.saml.user.email=email
- sonar.auth.saml.user.login=login
- sonar.auth.saml.user.name=name
- sonar.autodetect.ai.code=false
- sonar.azureresourcemanager.file.suffixes=.bicep
- sonar.c.file.suffixes=.c,.h
- sonar.core.id=xxxxx
- sonar.core.serverBaseURL=xxxxxxxxx
- sonar.core.startTime=2025-04-23T06:59:47+0000
- sonar.cpp.file.suffixes=.cc,.cpp,.cxx,.c++,.hh,.hpp,.hxx,.h++,.ipp,.ixx,.mxx,.cppm,.ccm,.cxxm,.c++m
- sonar.cs.file.suffixes=.cs,.razor
- sonar.css.file.suffixes=.css,.less,.scss,.sass
- sonar.dart.file.suffixes=.dart
- sonar.dbcleaner.branchesToKeepWhenInactive=master,develop,trunk
- sonar.docker.file.patterns=Dockerfile,*.dockerfile
- sonar.flex.file.suffixes=as
- sonar.forceAuthentication=true
- sonar.go.file.suffixes=.go
- sonar.html.file.suffixes=.html,.xhtml,.cshtml,.vbhtml,.aspx,.ascx,.rhtml,.erb,.shtm,.shtml,.cmp,.twig
- sonar.ipynb.file.suffixes=ipynb
- sonar.java.file.suffixes=.java,.jav
- sonar.java.jvmframeworkconfig.file.patterns=**/src/main/resources/**/*app*.properties,**/src/main/resources/**/*app*.yaml,**/src/main/resources/**/*app*.yml
- sonar.javascript.file.suffixes=.js,.jsx,.cjs,.mjs,.vue
- sonar.json.file.suffixes=.json
- sonar.jsp.file.suffixes=.jsp,.jspf,.jspx
- sonar.kotlin.file.suffixes=.kt,.kts
- sonar.license.notifications.remainingLocThreshold=100000
- sonar.multi-quality-mode.enabled=false
- sonar.objc.file.suffixes=.m
- sonar.php.file.suffixes=php,php3,php4,php5,phtml,inc
- sonar.plsql.file.suffixes=sql,pks,pkb
- sonar.plugins.risk.consent=ACCEPTED
- sonar.projectCreation.mainBranchName=master
- sonar.python.file.suffixes=py
- sonar.ruby.file.suffixes=.rb
- sonar.scala.file.suffixes=.scala
- sonar.swift.file.suffixes=.swift
- sonar.terraform.file.suffixes=.tf
- sonar.tsql.file.suffixes=.tsql
- sonar.typescript.file.suffixes=.ts,.tsx,.cts,.mts
- sonar.vbnet.file.suffixes=.vb
- sonar.xml.file.suffixes=.xml,.xsd,.xsl,.config
- sonar.yaml.file.suffixes=.yaml,.yml
Project server settings:
- sonar.abap.file.suffixes=.abap,.ab4,.flow,.asprog
- sonar.azureresourcemanager.file.suffixes=.bicep
- sonar.c.file.suffixes=.c,.h
- sonar.cpp.file.suffixes=.cc,.cpp,.cxx,.c++,.hh,.hpp,.hxx,.h++,.ipp,.ixx,.mxx,.cppm,.ccm,.cxxm,.c++m
- sonar.cs.file.suffixes=.cs,.razor
- sonar.css.file.suffixes=.css,.less,.scss,.sass
- sonar.dart.file.suffixes=.dart
- sonar.docker.file.patterns=Dockerfile,*.dockerfile
- sonar.flex.file.suffixes=as
- sonar.go.file.suffixes=.go
- sonar.html.file.suffixes=.html,.xhtml,.cshtml,.vbhtml,.aspx,.ascx,.rhtml,.erb,.shtm,.shtml,.cmp,.twig
- sonar.ipynb.file.suffixes=ipynb
- sonar.java.file.suffixes=.java,.jav
- sonar.java.jvmframeworkconfig.file.patterns=**/src/main/resources/**/*app*.properties,**/src/main/resources/**/*app*.yaml,**/src/main/resources/**/*app*.yml
- sonar.javascript.file.suffixes=.js,.jsx,.cjs,.mjs,.vue
- sonar.json.file.suffixes=.json
- sonar.jsp.file.suffixes=.jsp,.jspf,.jspx
- sonar.kotlin.file.suffixes=.kt,.kts
- sonar.objc.file.suffixes=.m
- sonar.php.file.suffixes=php,php3,php4,php5,phtml,inc
- sonar.plsql.file.suffixes=sql,pks,pkb
- sonar.python.file.suffixes=py
- sonar.ruby.file.suffixes=.rb
- sonar.scala.file.suffixes=.scala
- sonar.swift.file.suffixes=.swift
- sonar.terraform.file.suffixes=.tf
- sonar.tsql.file.suffixes=.tsql
- sonar.typescript.file.suffixes=.ts,.tsx,.cts,.mts
- sonar.vbnet.file.suffixes=.vb
- sonar.xml.file.suffixes=.xml,.xsd,.xsl,.config
- sonar.yaml.file.suffixes=.yaml,.yml
Project scanner properties:
- sonar.analysisCache.enabled=false
- sonar.branch.name=master
- sonar.coverage.exclusions=**/*
- sonar.host.url=xxxxxxxx
- sonar.inclusions=**/*.cs
- sonar.modules=5C609CB5-9963-4A04-924A-798AA30D3EEF,692D59EE-5370-4A9F-B1DC-66E8C6D628F3,A9472A57-FD34-4DDD-A242-A624ECFF6044,188B244F-E1BB-4E2E-9685-F35794A6AA97,17A86A86-E703-4A8D-ADCA-EC11927D95AD,CDF264D6-AC05-4888-8201-CED4ECF35F50,5C3D8A0E-B384-421D-B205-AE23007E9A8C,C99DE813-173F-40B9-9825-3CCB20898A95,E885215B-BDF1-4CDB-A89A-04FA473E6074,983BC327-77B2-48B3-B28F-0A9DE64EF9CB,BF863A9E-0443-46BD-BF6B-D914CA9017FA,52AF6978-D311-49CB-91AD-5F576F0C9C3C,01072E71-E4B6-4E77-B82A-354FDFC4602C,9085D29F-3902-4E88-995C-FE10B7A994CA,023B0098-29E7-472C-9077-3E47485B33FE,4E640C0E-E823-4FB7-92A6-C6A544C44FEF,2AE738D7-1273-4BC2-8F58-9C2043109E8A,4F178B61-AAAB-4FA1-8881-5810CD9AE1D3,929D4455-5115-4287-935A-691480264240,15D14237-BC6F-4131-ABD9-E4AA306BB22B,DC9012EC-4960-4F6C-8435-960CF7624BFA,98D886B3-778A-4D76-964A-0601A5F1B3DE,E4F81CCE-F5B0-454D-A20C-FE30A5B4E4A0,9CCBD309-348A-4A97-8F53-D9A904A01CF3,9A7B90A4-4881-4DB7-B7F0-4213F39ACA92,DF9F1C9B-33A5-4300-8C92-9F521125DFBB,62CDC63B-9AFF-4FA4-8E04-02B9ABBA195...
- sonar.projectBaseDir=/xxxxxxxxxxxx
- sonar.projectKey=xxxxxxx
- sonar.projectVersion=xxxxxxxx
- sonar.pullrequest.cache.basepath=/xxxxxxxxxxxx
- sonar.scanAllFiles=true
- sonar.scanner.app=ScannerMSBuild
- sonar.scanner.appVersion=9.0.2
- sonar.scanner.scanAll=false
- sonar.sourceEncoding=US-ASCII
- sonar.sources="/xxxxxxxxxxxx/Tests/testsettings.shared.json"
- sonar.token=******
- sonar.visualstudio.enable=false
- sonar.working.directory=/xxxxxxxxxxxx/.sonarqube/out/.sonar