+ 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_PROJECT_UUID="$BITBUCKET_PROJECT_UUID" \ --env=BITBUCKET_REPO_IS_PRIVATE="$BITBUCKET_REPO_IS_PRIVATE" \ --env=BITBUCKET_WORKSPACE="$BITBUCKET_WORKSPACE" \ --env=BITBUCKET_PR_DESTINATION_COMMIT="$BITBUCKET_PR_DESTINATION_COMMIT" \ --env=BITBUCKET_REPO_OWNER_UUID="$BITBUCKET_REPO_OWNER_UUID" \ --env=BITBUCKET_BRANCH="$BITBUCKET_BRANCH" \ --env=BITBUCKET_REPO_UUID="$BITBUCKET_REPO_UUID" \ --env=BITBUCKET_PROJECT_KEY="$BITBUCKET_PROJECT_KEY" \ --env=BITBUCKET_REPO_SLUG="$BITBUCKET_REPO_SLUG" \ --env=CI="$CI" \ --env=BITBUCKET_PR_ID="$BITBUCKET_PR_ID" \ --env=BITBUCKET_REPO_OWNER="$BITBUCKET_REPO_OWNER" \ --env=BITBUCKET_STEP_RUN_NUMBER="$BITBUCKET_STEP_RUN_NUMBER" \ --env=BITBUCKET_BUILD_NUMBER="$BITBUCKET_BUILD_NUMBER" \ --env=BITBUCKET_GIT_SSH_ORIGIN="$BITBUCKET_GIT_SSH_ORIGIN" \ --env=BITBUCKET_PIPELINE_UUID="$BITBUCKET_PIPELINE_UUID" \ --env=BITBUCKET_COMMIT="$BITBUCKET_COMMIT" \ --env=BITBUCKET_PR_DESTINATION_BRANCH="$BITBUCKET_PR_DESTINATION_BRANCH" \ --env=BITBUCKET_CLONE_DIR="$BITBUCKET_CLONE_DIR" \ --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=EXTRA_ARGS="-Dsonar.organization=\"xxx\" -Dsonar.projectKey=\"xxx_yyyapp\" -Dsonar.sources=src -Dsonar.tests=src -Dsonar.test.inclusions=\"**/*.test.tsx,**/*.test.ts\" -Dsonar.typescript.lcov.reportPaths=coverage/lcov.info" \ --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 783178df3a0c: Waiting b90e11ae2ca4: Waiting 9fc517e2c9ac: Waiting 6d77d62f6ea1: Waiting a8301419b002: Waiting 1d64ab2cd6f5: Waiting 0684138f4cb6: Waiting 67c4e741e688: Waiting 6aaf465b8930: Download complete 16d944e3d00d: Verifying Checksum 16d944e3d00d: Download complete 27833a3ba0a5: Verifying Checksum 27833a3ba0a5: Download complete 67c4e741e688: Verifying Checksum 67c4e741e688: Download complete 0684138f4cb6: Verifying Checksum 0684138f4cb6: Download complete 9fc517e2c9ac: Verifying Checksum 9fc517e2c9ac: Download complete b90e11ae2ca4: Download complete 783178df3a0c: Verifying Checksum 783178df3a0c: Download complete 6d77d62f6ea1: Verifying Checksum 6d77d62f6ea1: Download complete 1d64ab2cd6f5: Verifying Checksum 1d64ab2cd6f5: Download complete 27833a3ba0a5: Pull complete a8301419b002: Verifying Checksum a8301419b002: 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.92-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=581ms 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=147ms INFO: Load/download plugins (done) | time=28105ms INFO: Loaded core extensions: developer-scanner INFO: JavaScript/TypeScript frontend is enabled INFO: Load project settings for component key: 'xxx_yyyapp' INFO: Load project settings for component key: 'xxx_yyyapp' (done) | time=112ms INFO: Process project properties INFO: Execute project builders INFO: Execute project builders (done) | time=2ms INFO: Project key: xxx_yyyapp 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=102ms INFO: Check ALM binding of project 'xxx_yyyapp' INFO: Detected project binding: BOUND INFO: Check ALM binding of project 'xxx_yyyapp' (done) | time=106ms INFO: Load project pull requests INFO: Load project pull requests (done) | time=104ms INFO: Load branch configuration INFO: Load branch configuration (done) | time=2ms INFO: Load quality profiles INFO: Load quality profiles (done) | time=138ms INFO: Load active rules INFO: Load active rules (done) | time=3133ms INFO: Organization key: xxx INFO: Indexing files... INFO: Project configuration: INFO: Excluded sources: src/fonts/**/*, **/*.test.tsx, **/*.test.ts INFO: Included tests: **/*.test.tsx, **/*.test.ts INFO: Load project repositories INFO: Load project repositories (done) | time=147ms INFO: 1117 files indexed INFO: 1127 files ignored because of inclusion/exclusion patterns INFO: 0 files ignored because of scm ignore settings INFO: Quality profile for css: Sonar way INFO: Quality profile for js: Sonar way INFO: Quality profile for ts: Sonar way INFO: ------------- Run sensors on module xxx_yyyapp INFO: JavaScript/TypeScript frontend is enabled INFO: Load metrics repository INFO: Load metrics repository (done) | time=115ms INFO: Sensor SonarCSS Metrics [cssfamily] INFO: Sensor SonarCSS Metrics [cssfamily] (done) | time=240ms INFO: Sensor SonarCSS Rules [cssfamily] INFO: 16 source files to be analyzed INFO: 16/16 source files have been analyzed INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=2274ms INFO: Sensor C# Project Type Information [csharp] INFO: Sensor C# Project Type Information [csharp] (done) | time=4ms INFO: Sensor C# Properties [csharp] INFO: Sensor C# Properties [csharp] (done) | time=2ms INFO: Sensor JavaXmlSensor [java] INFO: Sensor JavaXmlSensor [java] (done) | time=8ms INFO: Sensor HTML [web] INFO: Sensor HTML [web] (done) | time=16ms INFO: Sensor VB.NET Project Type Information [vbnet] INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=2ms INFO: Sensor VB.NET Properties [vbnet] INFO: Sensor VB.NET Properties [vbnet] (done) | time=1ms 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=10ms INFO: Sensor JavaScript analysis [javascript] INFO: Deploying custom rules bundle jar:file:/root/.sonar/cache/f2d4f3985cfdc8a536978941e81bc342/sonar-securityjsfrontend-plugin.jar!/js-vulnerabilities-rules-1.0.0.tgz to /opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/eslint-bridge-bundle/package/custom-rules1769094136659717002 INFO: 150 source files to be analyzed INFO: 150/150 source files have been analyzed INFO: Sensor JavaScript analysis [javascript] (done) | time=18177ms INFO: Sensor TypeScript analysis [javascript] INFO: Found 1 tsconfig.json file(s): [/opt/atlassian/pipelines/agent/build/tsconfig.json] INFO: 543 source files to be analyzed INFO: Analyzing 543 files using tsconfig: /opt/atlassian/pipelines/agent/build/tsconfig.json INFO: 543/543 source files have been analyzed INFO: Sensor TypeScript analysis [javascript] (done) | time=63551ms INFO: Sensor JavaScript/TypeScript Coverage [javascript] WARN: The use of sonar.typescript.lcov.reportPaths for coverage import is deprecated, use sonar.javascript.lcov.reportPaths instead. WARN: No coverage information will be saved because LCOV file cannot be found. WARN: Provided LCOV file path: coverage/lcov.info. Seek file with path: /opt/atlassian/pipelines/agent/build/coverage/lcov.info WARN: No coverage information will be saved because all LCOV files cannot be found. INFO: Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=2ms INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=2ms INFO: Sensor JavaSecuritySensor [security] INFO: Reading type hierarchy from: /opt/atlassian/pipelines/agent/build/.scannerwork/ucfg2/java INFO: Read 0 type definitions INFO: Reading UCFGs from: /opt/atlassian/pipelines/agent/build/.scannerwork/ucfg2/java INFO: No UCFGs have been included for analysis. INFO: Sensor JavaSecuritySensor [security] (done) | time=3ms INFO: Sensor CSharpSecuritySensor [security] INFO: Reading type hierarchy from: /opt/atlassian/pipelines/agent/build/ucfg_cs2 INFO: Read 0 type definitions INFO: Reading UCFGs from: /opt/atlassian/pipelines/agent/build/ucfg_cs2 INFO: No UCFGs have been included for analysis. INFO: Sensor CSharpSecuritySensor [security] (done) | time=0ms INFO: Sensor PhpSecuritySensor [security] INFO: Reading type hierarchy from: /opt/atlassian/pipelines/agent/build/.scannerwork/ucfg2/php INFO: Read 0 type definitions INFO: Reading UCFGs from: /opt/atlassian/pipelines/agent/build/.scannerwork/ucfg2/php INFO: No UCFGs have been included for analysis. INFO: Sensor PhpSecuritySensor [security] (done) | time=0ms INFO: Sensor PythonSecuritySensor [security] INFO: Reading type hierarchy from: /opt/atlassian/pipelines/agent/build/.scannerwork/ucfg2/python INFO: Read 0 type definitions INFO: Reading UCFGs from: /opt/atlassian/pipelines/agent/build/.scannerwork/ucfg2/python INFO: No UCFGs have been included for analysis. INFO: Sensor PythonSecuritySensor [security] (done) | time=0ms INFO: Sensor JsSecuritySensor [security] INFO: Reading type hierarchy from: /opt/atlassian/pipelines/agent/build/.scannerwork/ucfg2/js INFO: Read 0 type definitions INFO: Reading UCFGs from: /opt/atlassian/pipelines/agent/build/.scannerwork/ucfg2/js INFO: 01:10:50.700663 Building Runtime Type propagation graph INFO: 01:10:51.118047 Running Tarjan on 25235 nodes INFO: 01:10:51.177036 Tarjan found 25233 components INFO: 01:10:51.30622 Variable type analysis: done INFO: 01:10:51.314122 Building Runtime Type propagation graph INFO: 01:10:51.60515 Running Tarjan on 25235 nodes INFO: 01:10:51.653325 Tarjan found 25233 components INFO: 01:10:51.742134 Variable type analysis: done INFO: Analyzing 4493 ucfgs to detect vulnerabilities. INFO: rule: S6105, entrypoints: 693 INFO: Running symbolic analysis INFO: rule: S6105 done INFO: rule: S5696, entrypoints: 693 INFO: Running symbolic analysis INFO: rule: S5696 done INFO: rule: S5334, entrypoints: 693 INFO: Running symbolic analysis INFO: rule: S5334 done INFO: rule: S2083, entrypoints: 693 INFO: Running symbolic analysis INFO: rule: S2083 done INFO: rule: S5147, entrypoints: 693 INFO: Running symbolic analysis INFO: rule: S5147 done INFO: rule: S5131, entrypoints: 693 INFO: Running symbolic analysis INFO: rule: S5131 done INFO: rule: S2631, entrypoints: 693 INFO: Running symbolic analysis INFO: rule: S2631 done INFO: rule: S3649, entrypoints: 693 INFO: Running symbolic analysis INFO: rule: S3649 done INFO: rule: S6096, entrypoints: 693 INFO: Running symbolic analysis INFO: rule: S6096 done INFO: Sensor JsSecuritySensor [security] (done) | time=15076ms INFO: ------------- Run sensors on project INFO: Sensor Zero Coverage Sensor INFO: Sensor Zero Coverage Sensor (done) | time=104ms INFO: SCM Publisher SCM provider for this project is: git INFO: SCM Publisher 4 source files to be analyzed INFO: SCM Publisher 4/4 source files have been analyzed (done) | time=348ms INFO: CPD Executor 121 files had no CPD blocks INFO: CPD Executor Calculating CPD for 572 files INFO: CPD Executor CPD calculation finished (done) | time=404ms INFO: Analysis report generated in 484ms, dir size=5 MB INFO: Analysis report compressed in 2372ms, zip size=2 MB INFO: Analysis report uploaded in 932ms INFO: ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=xxx_yyyapp INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report INFO: More about the report processing at https://sonarcloud.io/api/ce/task?id=AXivCG-aZPthslBZ54Jj INFO: Analysis total time: 2:00.050 s INFO: ------------------------------------------------------------------------ INFO: EXECUTION SUCCESS INFO: ------------------------------------------------------------------------ INFO: Total time: 2:32.834s INFO: Final Memory: 34M/134M INFO: ------------------------------------------------------------------------ ✔ SonarCloud analysis was successful. You already have a 'node' cache so we won't create it again Assembling contents of new cache 'sonar' 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 10.6 KiB Compressed files matching artifact pattern .bitbucket/pipelines/generated/pipeline/pipes/** to 2.8 KiB in 2 seconds Uploading artifact of 2.8 KiB Successfully uploaded artifact in 1 seconds Searching for files matching artifact pattern build/** Artifact pattern build/** matched 77 files with a total size of 45.8 MiB Compressed files matching artifact pattern build/** to 13.3 MiB in 5 seconds Uploading artifact of 13.3 MiB 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.