Template for a good new topic, formatted with Markdown:
I am trying to setup SoundCloud with Bitbucket Pipelines.
The language is .NET(CSHARP).
I created bitbucket-pipelines.yml file for the repo and after every commit, the branch is analysed.
On the dashboard, I see the project and files but there is no analysed data for the CSHARP files.
There is some HTML and XML files and these were successfully scanned but I cannot figure out why the CSHARP files are not.
Can anyone help to determine what i am doing wrong?
Below is my .yml file:
clone: depth: full # SonarCloud scanner needs the full history to assign issues properly definitions: services: docker: memory: 2048 caches: sonar: ~/.sonar/cache # Caching SonarCloud artifacts will speed up your build steps: - step: &build-test-sonarcloud # size: 2x Doubles the Build Memory resources available for this step. name: Build, test and analyze on SonarCloud caches: # See https://confluence.atlassian.com/bitbucket/caching-dependencies-895552876.html - sonar script: # Build your project and run - pipe: sonarsource/sonarcloud-scan:1.0.1 - step: &check-quality-gate-sonarcloud name: Check the Quality Gate on SonarCloud script: - pipe: sonarsource/sonarcloud-quality-gate:0.1.3 pipelines: # More info here: https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html branches: develop: - step: *build-test-sonarcloud services: - docker - step: *check-quality-gate-sonarcloud
These are the warning records from the Pipeline build which might be revelant?
WARN: Could not find ref: master in refs/heads or refs/remotes/origin WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/root/.sonar/cache/a89f1943fc75b65becd9fb4ecab8d913/sonar-tsql-plugin.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release INFO: Sensor C# Properties [csharp] WARN: Property missing: 'sonar.cs.analyzer.projectOutPaths'. No protobuf files will be loaded for this project. WARN: No Roslyn issues report found for this project. WARN: Could not find ref: master in refs/heads or refs/remotes/origin