+ umask 000 + GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone --branch="feature/testing-sonar-cloud" https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME.git $BUILD_DIR Cloning into '/opt/atlassian/pipelines/agent/build'... + git reset --hard 9cf9355ce51f08a6782ed59b8bd097704796c273 HEAD is now at 9cf9355 RM-8194 bitbucket-pipelines.yml created online with Bitbucket + git config user.name bitbucket-pipelines + git config user.email commits-noreply@bitbucket.org + git config push.default current + git config http.${BITBUCKET_GIT_HTTP_ORIGIN}.proxy http://localhost:29418/ + git remote set-url origin http://bitbucket.org/$BITBUCKET_REPO_FULL_NAME + git reflog expire --expire=all --all + echo ".bitbucket/pipelines/generated" >> .git/info/exclude + chmod 777 $BUILD_DIR Cache "pip": Downloading Cache "pip": Not found Cache "sonar": Downloading Cache "sonar": Not found Images used: build : docker.io/library/python@sha256:c7dbde31e857fdf738c79647d8b8dfef0cf027fd0cdb14ba04cdbd05d12f2b96 + docker container run \ --volume=/opt/atlassian/pipelines/agent/build:/opt/atlassian/pipelines/agent/build \ --volume=/opt/atlassian/pipelines/agent/ssh:/opt/atlassian/pipelines/agent/ssh:ro \ --volume=/usr/local/bin/docker:/usr/local/bin/docker:ro \ --volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes \ --volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarcloud-scan:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarcloud-scan \ --workdir=$(pwd) \ --label=org.bitbucket.pipelines.system=true \ --env=BITBUCKET_STEP_TRIGGERER_UUID="$BITBUCKET_STEP_TRIGGERER_UUID" \ --env=BITBUCKET_REPO_FULL_NAME="$BITBUCKET_REPO_FULL_NAME" \ --env=BITBUCKET_GIT_HTTP_ORIGIN="$BITBUCKET_GIT_HTTP_ORIGIN" \ --env=BITBUCKET_REPO_SLUG="$BITBUCKET_REPO_SLUG" \ --env=BITBUCKET_PROJECT_UUID="$BITBUCKET_PROJECT_UUID" \ --env=CI="$CI" \ --env=BITBUCKET_REPO_OWNER="$BITBUCKET_REPO_OWNER" \ --env=BITBUCKET_REPO_IS_PRIVATE="$BITBUCKET_REPO_IS_PRIVATE" \ --env=BITBUCKET_WORKSPACE="$BITBUCKET_WORKSPACE" \ --env=BITBUCKET_REPO_OWNER_UUID="$BITBUCKET_REPO_OWNER_UUID" \ --env=BITBUCKET_STEP_RUN_NUMBER="$BITBUCKET_STEP_RUN_NUMBER" \ --env=BITBUCKET_BUILD_NUMBER="$BITBUCKET_BUILD_NUMBER" \ --env=BITBUCKET_BRANCH="$BITBUCKET_BRANCH" \ --env=BITBUCKET_GIT_SSH_ORIGIN="$BITBUCKET_GIT_SSH_ORIGIN" \ --env=BITBUCKET_PIPELINE_UUID="$BITBUCKET_PIPELINE_UUID" \ --env=BITBUCKET_COMMIT="$BITBUCKET_COMMIT" \ --env=BITBUCKET_REPO_UUID="$BITBUCKET_REPO_UUID" \ --env=BITBUCKET_CLONE_DIR="$BITBUCKET_CLONE_DIR" \ --env=BITBUCKET_PROJECT_KEY="$BITBUCKET_PROJECT_KEY" \ --env=PIPELINES_JWT_TOKEN="$PIPELINES_JWT_TOKEN" \ --env=BITBUCKET_STEP_UUID="$BITBUCKET_STEP_UUID" \ --env=BITBUCKET_DOCKER_HOST_INTERNAL="$BITBUCKET_DOCKER_HOST_INTERNAL" \ --env=DOCKER_HOST="tcp://host.docker.internal:2375" \ --env=BITBUCKET_PIPE_SHARED_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes" \ --env=BITBUCKET_PIPE_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarcloud-scan" \ --env=SONAR_TOKEN="${SONAR_TOKEN}" \ --add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \ sonarsource/sonarcloud-scan:1.2.0 Unable to find image 'sonarsource/sonarcloud-scan:1.2.0' locally 1.2.0: Pulling from sonarsource/sonarcloud-scan 27833a3ba0a5: Pulling fs layer 16d944e3d00d: Pulling fs layer 6aaf465b8930: Pulling fs layer 0684138f4cb6: Pulling fs layer 67c4e741e688: Pulling fs layer 783178df3a0c: Pulling fs layer b90e11ae2ca4: Pulling fs layer 9fc517e2c9ac: Pulling fs layer 6d77d62f6ea1: Pulling fs layer a8301419b002: Pulling fs layer 1d64ab2cd6f5: Pulling fs layer 0684138f4cb6: Waiting 67c4e741e688: Waiting 783178df3a0c: Waiting b90e11ae2ca4: Waiting 9fc517e2c9ac: Waiting 6d77d62f6ea1: Waiting a8301419b002: Waiting 1d64ab2cd6f5: Waiting 16d944e3d00d: Verifying Checksum 16d944e3d00d: Download complete 6aaf465b8930: Verifying Checksum 6aaf465b8930: Download complete 27833a3ba0a5: Download complete 67c4e741e688: Verifying Checksum 67c4e741e688: Download complete 0684138f4cb6: Verifying Checksum 0684138f4cb6: Download complete 9fc517e2c9ac: Verifying Checksum 9fc517e2c9ac: Download complete b90e11ae2ca4: Verifying Checksum b90e11ae2ca4: Download complete a8301419b002: Verifying Checksum a8301419b002: Download complete 6d77d62f6ea1: Verifying Checksum 6d77d62f6ea1: Download complete 783178df3a0c: Verifying Checksum 783178df3a0c: Download complete 27833a3ba0a5: Pull complete 1d64ab2cd6f5: Verifying Checksum 1d64ab2cd6f5: Download complete 16d944e3d00d: Pull complete 6aaf465b8930: Pull complete 0684138f4cb6: Pull complete 67c4e741e688: Pull complete 783178df3a0c: Pull complete b90e11ae2ca4: Pull complete 9fc517e2c9ac: Pull complete 6d77d62f6ea1: Pull complete a8301419b002: Pull complete 1d64ab2cd6f5: Pull complete Digest: sha256:7f39096138d7e6dd1e77d994a44bbdffd5136fd500415f64eebded0c1ce64d83 Status: Downloaded newer image for sonarsource/sonarcloud-scan:1.2.0 INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties INFO: Project root configuration file: NONE INFO: SonarScanner 4.4.0.2170 INFO: Java 11.0.2 Oracle Corporation (64-bit) INFO: Linux 5.4.72-flatcar amd64 INFO: Bitbucket Cloud Pipelines detected INFO: User cache: /root/.sonar/cache INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties INFO: Project root configuration file: NONE INFO: Analyzing on SonarQube server 8.5.0 INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent) INFO: Load global settings INFO: Load global settings (done) | time=579ms INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu INFO: User cache: /root/.sonar/cache INFO: Load/download plugins INFO: Load plugins index INFO: Load plugins index (done) | time=136ms INFO: Load/download plugins (done) | time=31079ms INFO: Loaded core extensions: developer-scanner INFO: JavaScript/TypeScript frontend is enabled INFO: Found an active CI vendor: 'Bitbucket Pipelines' INFO: Detected project key 'openplaytech_game_pace' from 'Bitbucket Cloud Pipelines' INFO: Detected organization key 'openplaytech' from 'Bitbucket Cloud Pipelines' INFO: Load project settings for component key: 'openplaytech_game_pace' INFO: Load project settings for component key: 'openplaytech_game_pace' (done) | time=133ms INFO: Process project properties INFO: Execute project builders INFO: Execute project builders (done) | time=2ms INFO: Project key: openplaytech_game_pace INFO: Base dir: /opt/atlassian/pipelines/agent/build INFO: Working dir: /opt/atlassian/pipelines/agent/build/.scannerwork INFO: Load project branches INFO: Load project branches (done) | time=110ms INFO: Check ALM binding of project 'openplaytech_game_pace' INFO: Detected project binding: BOUND INFO: Check ALM binding of project 'openplaytech_game_pace' (done) | time=98ms INFO: Load project pull requests INFO: Load project pull requests (done) | time=115ms INFO: Load branch configuration INFO: Detected analysis for branch 'feature/testing-sonar-cloud' INFO: Auto-configuring branch feature/testing-sonar-cloud INFO: Load branch configuration (done) | time=2ms INFO: Load quality profiles INFO: Load quality profiles (done) | time=148ms INFO: Load active rules INFO: Load active rules (done) | time=3300ms INFO: Organization key: openplaytech INFO: Branch name: feature/testing-sonar-cloud, type: short living INFO: SCM collecting changed files in the branch INFO: SCM collecting changed files in the branch (done) | time=233ms INFO: Indexing files... INFO: Project configuration: INFO: 1067 files indexed INFO: 0 files ignored because of scm ignore settings INFO: Quality profile for c: Sonar way INFO: Quality profile for py: Sonar way INFO: Quality profile for xml: Sonar way INFO: ------------- Run sensors on module openplaytech_game_pace INFO: JavaScript/TypeScript frontend is enabled INFO: Load metrics repository INFO: Load metrics repository (done) | time=108ms INFO: Sensor SonarCSS Rules [cssfamily] INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped. INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=6ms INFO: Sensor C# Properties [csharp] INFO: Sensor C# Properties [csharp] (done) | time=1ms INFO: Sensor JavaXmlSensor [java] INFO: 1 source files to be analyzed INFO: Sensor JavaXmlSensor [java] (done) | time=283ms INFO: 1/1 source files have been analyzed INFO: Sensor HTML [web] INFO: Sensor HTML [web] (done) | time=10ms INFO: Sensor XML Sensor [xml] INFO: 1 source files to be analyzed INFO: Sensor XML Sensor [xml] (done) | time=237ms INFO: Sensor VB.NET Properties [vbnet] INFO: Sensor VB.NET Properties [vbnet] (done) | time=1ms INFO: 1/1 source files have been analyzed INFO: Sensor Python Sensor [python] INFO: Starting global symbols computation INFO: 770 source files to be analyzed WARN: Invalid character encountered in file /opt/atlassian/pipelines/agent/build/env/lib/python3.4/site-packages/pkg_resources/__init__.py at line 1806 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'. INFO: 27/770 files analyzed, current file: env/lib/python3.4/site-packages/pkg_resources/__init__.py WARN: Invalid character encountered in file /opt/atlassian/pipelines/agent/build/env/lib/python3.4/site-packages/pip/_vendor/pkg_resources/__init__.py at line 1803 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'. INFO: 446/770 files analyzed, current file: env/lib/python3.4/site-packages/setuptools/_vendor/pyparsing.py INFO: 770/770 source files have been analyzed INFO: Starting rules execution INFO: 770 source files to be analyzed INFO: 86/770 files analyzed, current file: admin/user_roles.py INFO: 194/770 files analyzed, current file: env/lib/python3.4/encodings/cp949.py INFO: 340/770 files analyzed, current file: env/lib/python3.4/site-packages/pip/_vendor/msgpack/fallback.py INFO: 471/770 files analyzed, current file: env/lib/python3.4/site-packages/setuptools/msvc.py INFO: 646/770 files analyzed, current file: env/lib/python3.4/site-packages/pip/_vendor/pyparsing.py INFO: 764/770 files analyzed, current file: env/lib/python3.4/site-packages/pip/_vendor/appdirs.py INFO: Sensor Python Sensor [python] (done) | time=85404ms INFO: 770/770 source files have been analyzed INFO: Sensor Cobertura Sensor for Python coverage [python] INFO: Sensor Cobertura Sensor for Python coverage [python] (done) | time=152ms INFO: Sensor PythonXUnitSensor [python] INFO: Sensor PythonXUnitSensor [python] (done) | time=121ms INFO: Sensor JaCoCo XML Report Importer [jacoco] 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 INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=5ms INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=2ms INFO: Sensor Python HTML templates processing [securitypythonfrontend] INFO: Sensor Python HTML templates processing [securitypythonfrontend] (done) | time=142ms INFO: Sensor CFamily [cpp] INFO: CFamily plugin version: 6.15.0.25047 ERROR: The only way to get an accurate analysis of C/C++/Objective-C files is by using the SonarSource build-wrapper and setting the property "sonar.cfamily.build-wrapper-output", but it was not specified. If you don't want to analyze C/C++/Objective-C files, then prevent them from being analyzed by setting the following properties: sonar.c.file.suffixes=- sonar.cpp.file.suffixes=- sonar.objc.file.suffixes=- INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ INFO: Total time: 2:10.711s INFO: Final Memory: 435M/1480M INFO: ------------------------------------------------------------------------ ERROR: Error during SonarScanner execution java.lang.UnsupportedOperationException: The only way to get an accurate analysis of C/C++/Objective-C files is by using the SonarSource build-wrapper and setting the property "sonar.cfamily.build-wrapper-output", but it was not specified. If you don't want to analyze C/C++/Objective-C files, then prevent them from being analyzed by setting the following properties: sonar.c.file.suffixes=- sonar.cpp.file.suffixes=- sonar.objc.file.suffixes=- at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:168) at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:45) at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75) at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:51) at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:68) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109) at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:438) at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:434) at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:392) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109) at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:126) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109) at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:58) at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:52) at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60) at com.sun.proxy.$Proxy0.execute(Unknown Source) at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189) at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138) at org.sonarsource.scanner.cli.Main.execute(Main.java:112) at org.sonarsource.scanner.cli.Main.execute(Main.java:75) at org.sonarsource.scanner.cli.Main.main(Main.java:61) ERROR: ERROR: Re-run SonarScanner using the -X switch to enable full debug logging. ✖ SonarCloud analysis failed. Skipping cache upload for failed step Searching for files matching artifact pattern .bitbucket/pipelines/generated/pipeline/pipes/** Artifact pattern .bitbucket/pipelines/generated/pipeline/pipes/** matched 1 files with a total size of 9.9 KiB Compressed files matching artifact pattern .bitbucket/pipelines/generated/pipeline/pipes/** to 2.7 KiB in 0 seconds Uploading artifact of 2.7 KiB Successfully uploaded artifact in 1 seconds Searching for test report files in directories named [test-results, failsafe-reports, test-reports, surefire-reports] down to a depth of 4 Finished scanning for test reports. Found 0 test report files. Merged test suites, total number tests is 0, with 0 failures and 0 errors.