Pipeline not finishing

Hello,

I’m trying to setup sonarcloud for one of our private projects on our Bitbucket Cloud.

Here some information:

  • ALM used (-)

  • CI system used (Bitbucket Cloud)

  • Scanner command used when applicable (-)

  • Languages of the repository (php, js )

  • Only if the SonarCloud project is public, the URL (-)

    • And if you need help with pull request decoration, then the URL to the PR too
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)

pipe: sonarsource/sonarcloud-scan:1.4.0
16m 36s
+ 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_SSH_KEY_FILE="$BITBUCKET_SSH_KEY_FILE" \
   --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_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_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=SONAR_TOKEN="${SONAR_TOKEN}" \
   --add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \
   sonarsource/sonarcloud-scan:1.4.0
Interception cache generation... 7/7 [============================] 100% 40 secs 442.0 MiBUnable to find image 'sonarsource/sonarcloud-scan:1.4.0' locally
1.4.0: Pulling from sonarsource/sonarcloud-scan
743f2d6c1f65: Pulling fs layer
5c14188d0980: Pulling fs layer
84a54a21b0f2: Pulling fs layer
d9d1bc98b287: Pulling fs layer
c99e982badff: Pulling fs layer
50c6b4dfde57: Pulling fs layer
a561eaec2f8f: Pulling fs layer
ea88b09234a3: Pulling fs layer
83613aeae58d: Pulling fs layer
5d476eee175a: Pulling fs layer
3d3951d29cc9: Pulling fs layer
c99e982badff: Waiting
50c6b4dfde57: Waiting
a561eaec2f8f: Waiting
ea88b09234a3: Waiting
83613aeae58d: Waiting
5d476eee175a: Waiting
3d3951d29cc9: Waiting
5c14188d0980: Verifying Checksum
5c14188d0980: Download complete
84a54a21b0f2: Verifying Checksum
84a54a21b0f2: Download complete
743f2d6c1f65: Verifying Checksum
743f2d6c1f65: Download complete
d9d1bc98b287: Verifying Checksum
d9d1bc98b287: Download complete
c99e982badff: Download complete
ea88b09234a3: Verifying Checksum
ea88b09234a3: Download complete
a561eaec2f8f: Verifying Checksum
a561eaec2f8f: Download complete
5d476eee175a: Verifying Checksum
5d476eee175a: Download complete
50c6b4dfde57: Verifying Checksum
50c6b4dfde57: Download complete
3d3951d29cc9: Verifying Checksum
3d3951d29cc9: Download complete
83613aeae58d: Verifying Checksum
83613aeae58d: Download complete
743f2d6c1f65: Pull complete
5c14188d0980: Pull complete
84a54a21b0f2: Pull complete
d9d1bc98b287: Pull complete
c99e982badff: Pull complete
50c6b4dfde57: Pull complete
a561eaec2f8f: Pull complete
ea88b09234a3: Pull complete
83613aeae58d: Pull complete
5d476eee175a: Pull complete
3d3951d29cc9: Pull complete
Digest: sha256:8b3690666e34b17bbab84370e569151742f06f21575fbe05e5c066c160b7c968
Status: Downloaded newer image for sonarsource/sonarcloud-scan:1.4.0
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.6.2.2472
INFO: Java 11.0.3 Oracle Corporation (64-bit)
INFO: Linux 5.15.0-1020-aws amd64
INFO: Bitbucket Cloud Pipelines detected, no host variable set. Defaulting to sonarcloud.io.
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.0.0.34156
INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=638ms
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=586ms
INFO: Load/download plugins (done) | time=5140ms
INFO: Loaded core extensions: developer-scanner
INFO: Found an active CI vendor: 'Bitbucket Pipelines'
INFO: Detected project key 'risscstuttgart_cdlux' from 'Bitbucket Cloud Pipelines'
INFO: Detected organization key 'risscstuttgart' from 'Bitbucket Cloud Pipelines'
INFO: Load project settings for component key: 'risscstuttgart_cdlux'
INFO: Load project settings for component key: 'risscstuttgart_cdlux' (done) | time=610ms
INFO: Process project properties
INFO: Execute project builders
INFO: Execute project builders (done) | time=3ms
INFO: Project key: risscstuttgart_cdlux
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=582ms
INFO: Check ALM binding of project 'risscstuttgart_cdlux'
INFO: Detected project binding: BOUND
INFO: Check ALM binding of project 'risscstuttgart_cdlux' (done) | time=553ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=559ms
INFO: Load branch configuration
INFO: Detected analysis for branch 'master'
INFO: Auto-configuring branch master
INFO: Load branch configuration (done) | time=5ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=638ms
INFO: Load active rules
INFO: Load active rules (done) | time=5887ms
INFO: Organization key: risscstuttgart
INFO: Branch name: master, type: long-lived
INFO: Load project repositories
INFO: Load project repositories (done) | time=562ms
INFO: Indexing files...
INFO: Project configuration:
INFO:   Excluded sources: **/build-wrapper-dump.json
INFO: 2915 files indexed...  (last one was composer.json)
INFO: 2919 files indexed...  (last one was package.json)
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/salsify/json-streaming-parser/phpunit' is ignored. It is a symbolic link targeting a file that does not exist.
INFO: 3015 files indexed...  (last one was Gruntfile.js)
INFO: 3015 files indexed...  (last one was Gruntfile.js)
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/jsonlint' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/cssmin' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/lessc' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/php-parse' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/sentry' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/n98-magerun2' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/composer' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/templatemap_generator.php' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/psysh' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/validate-json' is ignored. It is a symbolic link targeting a file not located in project basedir.
INFO: 3015 files indexed...  (last one was Gruntfile.js)
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-escaper/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-console/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-mvc/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-i18n/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-serializer/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-form/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-db/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-uri/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-crypt/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-inputfilter/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-log/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-text/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-diactoros/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-soap/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-di/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-loader/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-captcha/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-config/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-http/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-filter/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-code/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/n98/magerun2/bin/compile-bash-autocompletion' is ignored. It is a symbolic link targeting a file not located in project basedir.
INFO: 3015 files indexed
INFO: 0 files ignored because of inclusion/exclusion patterns
INFO: 100761 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 json: Sonar way
INFO: Quality profile for php: Sonar way
INFO: Quality profile for web: Sonar way
INFO: Quality profile for xml: Sonar way
INFO: ------------- Run sensors on module risscstuttgart_cdlux
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=621ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=108ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=116ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=10ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Sensor C# Analysis Log [csharp] (done) | time=87ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=0ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=5246ms
INFO: Sensor XML Sensor [xml]
INFO: 381 source files to be analyzed
INFO: 58/381 files analyzed, current file: app/code/WeltPixel/OwlCarouselSlider/etc/acl.xml
INFO: 59/381 files analyzed, current file: app/code/CDLux/DesignThemes/view/adminhtml/layout/designthemes_categories_edit.xml
INFO: 60/381 files analyzed, current file: app/code/Cart2Quote/Quotation/view/frontend/layout/quotation_email_proposal_items.xml
INFO: 60/381 files analyzed, current file: app/code/Cart2Quote/Quotation/view/frontend/layout/quotation_email_proposal_items.xml
INFO: 61/381 files analyzed, current file: app/code/Magezon/Core/etc/frontend/di.xml
INFO: 61/381 files analyzed, current file: app/code/Magezon/Core/etc/frontend/di.xml
INFO: 61/381 files analyzed, current file: app/code/Magezon/Core/etc/frontend/di.xml
INFO: 61/381 files analyzed, current file: app/code/Magezon/Core/etc/frontend/di.xml
INFO: 62/381 files analyzed, current file: app/code/Cart2Quote/Quotation/view/adminhtml/layout/quotation_quote_view_load_block_items.xml
INFO: 62/381 files analyzed, current file: app/code/Cart2Quote/Quotation/view/adminhtml/layout/quotation_quote_view_load_block_items.xml
INFO: 62/381 files analyzed, current file: app/code/Cart2Quote/Quotation/view/adminhtml/layout/quotation_quote_view_load_block_items.xml
INFO: 62/381 files analyzed, current file: app/code/Cart2Quote/Quotation/view/adminhtml/layout/quotation_quote_view_load_block_items.xml
INFO: 63/381 files analyzed, current file: app/code/Printformer/Quotation/etc/module.xml
INFO: 63/381 files analyzed, current file: app/code/Printformer/Quotation/etc/module.xml
INFO: 63/381 files analyzed, current file: app/code/Printformer/Quotation/etc/module.xml
INFO: 63/381 files analyzed, current file: app/code/Printformer/Quotation/etc/module.xml
INFO: 63/381 files analyzed, current file: app/code/Printformer/Quotation/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
INFO: 64/381 files analyzed, current file: app/code/CDLux/Cart2Quote/etc/module.xml
time="2022-10-28T14:23:18Z" level=error msg="error waiting for container: unexpected EOF" 
  • Steps to reproduce :
    I simply followed the setup steps, and extended our bitbucket-pipelines.yml by this lines:

clone:
** depth: full # SonarCloud scanner needs the full history to assign issues properly**

and

- pipe: sonarsource/sonarcloud-scan:1.4.0
- pipe: sonarsource/sonarcloud-quality-gate:0.1.6

After that I merged the changes and startet the pipeline. But it runs very long and ends with the attached error above.

  • Potential workaround (-)

Best Regards,
Tina

Hey there.

Can you tell us more about these XML files? Is, for example, app/code/CDLux/Cart2Quote/etc/module.xml particularly large? Do you really want to analyze XML files, or just the PHP/Javascript?

Hello Colin,

thank you for your reply.
In general it would be sufficient to analyse the PHP or JavaScript.
Is there a way to exclude the XML files from analysis process?

Greetings,
Tina

Checkout the documentation on Analysis Scope!

Hello Colin,

I tried to exclude .xml files by adding this restriction:

In fact I see that many xml files are not loaded , but the process crashes anyway after a while:

Report:

+ 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_SSH_KEY_FILE="$BITBUCKET_SSH_KEY_FILE" \
   --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_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_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=SONAR_TOKEN="${SONAR_TOKEN}" \
   --add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \
   sonarsource/sonarcloud-scan:1.4.0
Interception cache generation... 7/7 [============================] 100% 37 secs 444.0 MiBUnable to find image 'sonarsource/sonarcloud-scan:1.4.0' locally
1.4.0: Pulling from sonarsource/sonarcloud-scan
743f2d6c1f65: Pulling fs layer
5c14188d0980: Pulling fs layer
84a54a21b0f2: Pulling fs layer
d9d1bc98b287: Pulling fs layer
c99e982badff: Pulling fs layer
50c6b4dfde57: Pulling fs layer
a561eaec2f8f: Pulling fs layer
ea88b09234a3: Pulling fs layer
83613aeae58d: Pulling fs layer
5d476eee175a: Pulling fs layer
3d3951d29cc9: Pulling fs layer
d9d1bc98b287: Waiting
50c6b4dfde57: Waiting
a561eaec2f8f: Waiting
ea88b09234a3: Waiting
83613aeae58d: Waiting
5d476eee175a: Waiting
3d3951d29cc9: Waiting
84a54a21b0f2: Verifying Checksum
84a54a21b0f2: Download complete
5c14188d0980: Download complete
743f2d6c1f65: Download complete
c99e982badff: Verifying Checksum
c99e982badff: Download complete
d9d1bc98b287: Verifying Checksum
d9d1bc98b287: Download complete
ea88b09234a3: Download complete
a561eaec2f8f: Verifying Checksum
a561eaec2f8f: Download complete
5d476eee175a: Verifying Checksum
5d476eee175a: Download complete
50c6b4dfde57: Download complete
743f2d6c1f65: Pull complete
3d3951d29cc9: Verifying Checksum
3d3951d29cc9: Download complete
5c14188d0980: Pull complete
83613aeae58d: Verifying Checksum
83613aeae58d: Download complete
84a54a21b0f2: Pull complete
d9d1bc98b287: Pull complete
c99e982badff: Pull complete
50c6b4dfde57: Pull complete
a561eaec2f8f: Pull complete
ea88b09234a3: Pull complete
83613aeae58d: Pull complete
5d476eee175a: Pull complete
3d3951d29cc9: Pull complete
Digest: sha256:8b3690666e34b17bbab84370e569151742f06f21575fbe05e5c066c160b7c968
Status: Downloaded newer image for sonarsource/sonarcloud-scan:1.4.0
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.6.2.2472
INFO: Java 11.0.3 Oracle Corporation (64-bit)
INFO: Linux 5.15.0-1022-aws amd64
INFO: Bitbucket Cloud Pipelines detected, no host variable set. Defaulting to sonarcloud.io.
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.0.0.34420
INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=591ms
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=560ms
INFO: Load/download plugins (done) | time=4123ms
INFO: Loaded core extensions: developer-scanner
INFO: Found an active CI vendor: 'Bitbucket Pipelines'
INFO: Detected project key 'risscstuttgart_cdlux' from 'Bitbucket Cloud Pipelines'
INFO: Detected organization key 'risscstuttgart' from 'Bitbucket Cloud Pipelines'
INFO: Load project settings for component key: 'risscstuttgart_cdlux'
INFO: Load project settings for component key: 'risscstuttgart_cdlux' (done) | time=539ms
INFO: Process project properties
INFO: Execute project builders
INFO: Execute project builders (done) | time=1ms
INFO: Project key: risscstuttgart_cdlux
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=541ms
INFO: Check ALM binding of project 'risscstuttgart_cdlux'
INFO: Detected project binding: BOUND
INFO: Check ALM binding of project 'risscstuttgart_cdlux' (done) | time=520ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=532ms
INFO: Load branch configuration
INFO: Detected analysis for branch 'master'
INFO: Auto-configuring branch master
INFO: Load branch configuration (done) | time=3ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=615ms
INFO: Load active rules
INFO: Load active rules (done) | time=5262ms
INFO: Organization key: risscstuttgart
INFO: Branch name: master, type: long-lived
INFO: Load project repositories
INFO: Load project repositories (done) | time=543ms
INFO: Indexing files...
INFO: Project configuration:
INFO:   Excluded sources: **/build-wrapper-dump.json, sonar.exclusions=**/*.xml
INFO: 2 files indexed...  (last one was composer.lock)
INFO: 2 files indexed...  (last one was composer.lock)
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/n98-magerun2' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/lessc' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/psysh' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/jsonlint' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/templatemap_generator.php' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/composer' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/cssmin' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/validate-json' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/php-parse' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/sentry' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-loader/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-mvc/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-text/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-code/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-filter/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-serializer/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-crypt/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-form/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-inputfilter/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-db/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-diactoros/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-captcha/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-di/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-escaper/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-uri/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-http/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-config/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-console/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-i18n/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-log/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-soap/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/n98/magerun2/bin/compile-bash-autocompletion' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/salsify/json-streaming-parser/phpunit' is ignored. It is a symbolic link targeting a file that does not exist.
INFO: 2 files indexed...  (last one was composer.lock)
INFO: 3015 files indexed
INFO: 0 files ignored because of inclusion/exclusion patterns
INFO: 100769 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 json: Sonar way
INFO: Quality profile for php: Sonar way
INFO: Quality profile for web: Sonar way
INFO: Quality profile for xml: Sonar way
INFO: ------------- Run sensors on module risscstuttgart_cdlux
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=569ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=58ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=44ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=2ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Sensor C# Analysis Log [csharp] (done) | time=12ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=0ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=2085ms
INFO: Sensor XML Sensor [xml]
INFO: 381 source files to be analyzed
INFO: 381/381 source files have been analyzed
INFO: Sensor XML Sensor [xml] (done) | time=3499ms
INFO: Sensor Text Sensor [text]
INFO: 2706 source files to be analyzed
INFO: 2706/2706 source files have been analyzed
INFO: Sensor Text Sensor [text] (done) | time=778ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=3ms
INFO: Sensor VB.NET Analysis Log [vbnet]
INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=23ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
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=14ms
INFO: Sensor JavaScript analysis [javascript]
time="2022-11-07T11:17:16Z" level=error msg="error waiting for container: unexpected EOF"

Greetings,
Tina

I restarted analysis with this exclusions:

as far as I understood all .xml files are gonna be skipped, according to report they are still analyzed:

+ 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_SSH_KEY_FILE="$BITBUCKET_SSH_KEY_FILE" \
   --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_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_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=SONAR_TOKEN="${SONAR_TOKEN}" \
   --add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \
   sonarsource/sonarcloud-scan:1.4.0
Interception cache generation... 7/7 [============================] 100% 46 secs 442.0 MiBUnable to find image 'sonarsource/sonarcloud-scan:1.4.0' locally
1.4.0: Pulling from sonarsource/sonarcloud-scan
743f2d6c1f65: Pulling fs layer
5c14188d0980: Pulling fs layer
84a54a21b0f2: Pulling fs layer
d9d1bc98b287: Pulling fs layer
c99e982badff: Pulling fs layer
50c6b4dfde57: Pulling fs layer
a561eaec2f8f: Pulling fs layer
ea88b09234a3: Pulling fs layer
83613aeae58d: Pulling fs layer
5d476eee175a: Pulling fs layer
3d3951d29cc9: Pulling fs layer
d9d1bc98b287: Waiting
c99e982badff: Waiting
50c6b4dfde57: Waiting
a561eaec2f8f: Waiting
ea88b09234a3: Waiting
83613aeae58d: Waiting
5d476eee175a: Waiting
3d3951d29cc9: Waiting
84a54a21b0f2: Verifying Checksum
84a54a21b0f2: Download complete
5c14188d0980: Verifying Checksum
5c14188d0980: Download complete
743f2d6c1f65: Download complete
d9d1bc98b287: Verifying Checksum
d9d1bc98b287: Download complete
c99e982badff: Verifying Checksum
c99e982badff: Download complete
ea88b09234a3: Verifying Checksum
ea88b09234a3: Download complete
a561eaec2f8f: Verifying Checksum
a561eaec2f8f: Download complete
5d476eee175a: Verifying Checksum
5d476eee175a: Download complete
3d3951d29cc9: Verifying Checksum
3d3951d29cc9: Download complete
50c6b4dfde57: Verifying Checksum
50c6b4dfde57: Download complete
83613aeae58d: Verifying Checksum
83613aeae58d: Download complete
743f2d6c1f65: Pull complete
5c14188d0980: Pull complete
84a54a21b0f2: Pull complete
d9d1bc98b287: Pull complete
c99e982badff: Pull complete
50c6b4dfde57: Pull complete
a561eaec2f8f: Pull complete
ea88b09234a3: Pull complete
83613aeae58d: Pull complete
5d476eee175a: Pull complete
3d3951d29cc9: Pull complete
Digest: sha256:8b3690666e34b17bbab84370e569151742f06f21575fbe05e5c066c160b7c968
Status: Downloaded newer image for sonarsource/sonarcloud-scan:1.4.0
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.6.2.2472
INFO: Java 11.0.3 Oracle Corporation (64-bit)
INFO: Linux 5.15.0-1022-aws amd64
INFO: Bitbucket Cloud Pipelines detected, no host variable set. Defaulting to sonarcloud.io.
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.0.0.34532
INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=624ms
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=581ms
INFO: Load/download plugins (done) | time=4637ms
INFO: Loaded core extensions: developer-scanner
INFO: Found an active CI vendor: 'Bitbucket Pipelines'
INFO: Detected project key 'risscstuttgart_cdlux' from 'Bitbucket Cloud Pipelines'
INFO: Detected organization key 'risscstuttgart' from 'Bitbucket Cloud Pipelines'
INFO: Load project settings for component key: 'risscstuttgart_cdlux'
INFO: Load project settings for component key: 'risscstuttgart_cdlux' (done) | time=574ms
INFO: Process project properties
INFO: Execute project builders
INFO: Execute project builders (done) | time=2ms
INFO: Project key: risscstuttgart_cdlux
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=544ms
INFO: Check ALM binding of project 'risscstuttgart_cdlux'
INFO: Detected project binding: BOUND
INFO: Check ALM binding of project 'risscstuttgart_cdlux' (done) | time=519ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=527ms
INFO: Load branch configuration
INFO: Detected analysis for branch 'master'
INFO: Auto-configuring branch master
INFO: Load branch configuration (done) | time=5ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=677ms
INFO: Load active rules
INFO: Load active rules (done) | time=5547ms
INFO: Organization key: risscstuttgart
INFO: Branch name: master, type: long-lived
INFO: Load project repositories
INFO: Load project repositories (done) | time=560ms
INFO: Indexing files...
INFO: Project configuration:
INFO:   Excluded sources: **/build-wrapper-dump.json, sonar.exclusions=**/*.xml, sonar.exclusions=**/*.js
INFO:   Excluded tests: sonar.test.exclusions=**/*test.php
INFO: 4 files indexed...  (last one was dev/tools/grunt/configs/themes.js)
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-http/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-diactoros/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-di/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-escaper/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-db/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-text/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-config/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-uri/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-i18n/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-serializer/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-log/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-crypt/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-mvc/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-soap/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-form/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-inputfilter/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-filter/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-captcha/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-code/doc/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-loader/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/zendframework/zend-console/docs/book/index.md' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/n98/magerun2/bin/compile-bash-autocompletion' is ignored. It is a symbolic link targeting a file not located in project basedir.
INFO: 2922 files indexed...  (last one was app/code/WebMeridian/PreviousNext/etc/module.xml)
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/jsonlint' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/lessc' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/templatemap_generator.php' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/composer' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/n98-magerun2' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/psysh' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/php-parse' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/validate-json' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/sentry' is ignored. It is a symbolic link targeting a file not located in project basedir.
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/bin/cssmin' is ignored. It is a symbolic link targeting a file not located in project basedir.
INFO: 2922 files indexed...  (last one was app/code/WebMeridian/PreviousNext/etc/module.xml)
WARN: File '/opt/atlassian/pipelines/agent/build/vendor/salsify/json-streaming-parser/phpunit' is ignored. It is a symbolic link targeting a file that does not exist.
INFO: 3015 files indexed
INFO: 0 files ignored because of inclusion/exclusion patterns
INFO: 100767 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 json: Sonar way
INFO: Quality profile for php: Sonar way
INFO: Quality profile for web: Sonar way
INFO: Quality profile for xml: Sonar way
INFO: ------------- Run sensors on module risscstuttgart_cdlux
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=592ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=80ms
INFO: Sensor IaC Kubernetes Sensor [iac]

Hey there.

You shouldn’t add sonar.exclusions to the settings value, just **/*.xml will do :slight_smile:

Hello Colin,

so I added now all possible restrictions since the pipeline is constantly failing.
I deleted the keys, entering only the values I want to restrict or allow.

+ 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-quality-gate:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarcloud-quality-gate \
   --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_SSH_KEY_FILE="$BITBUCKET_SSH_KEY_FILE" \
   --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_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_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-quality-gate" \
   --env=SONAR_TOKEN="${SONAR_TOKEN}" \
   --add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \
   sonarsource/sonarcloud-quality-gate:0.1.6
Unable to find image 'sonarsource/sonarcloud-quality-gate:0.1.6' locally
0.1.6: Pulling from sonarsource/sonarcloud-quality-gate
7d63c13d9b9b: Pulling fs layer
7c9d54bd144b: Pulling fs layer
a7f085de2052: Pulling fs layer
9027970cef28: Pulling fs layer
97a32a5a9483: Pulling fs layer
64c7eb061745: Pulling fs layer
3a5b08312a6b: Pulling fs layer
54698e5bc8b2: Pulling fs layer
9027970cef28: Waiting
97a32a5a9483: Waiting
3a5b08312a6b: Waiting
64c7eb061745: Waiting
54698e5bc8b2: Waiting
a7f085de2052: Verifying Checksum
a7f085de2052: Download complete
7d63c13d9b9b: Verifying Checksum
7d63c13d9b9b: Download complete
9027970cef28: Verifying Checksum
9027970cef28: Download complete
97a32a5a9483: Verifying Checksum
97a32a5a9483: Download complete
3a5b08312a6b: Verifying Checksum
3a5b08312a6b: Download complete
64c7eb061745: Verifying Checksum
64c7eb061745: Download complete
54698e5bc8b2: Verifying Checksum
54698e5bc8b2: Download complete
7d63c13d9b9b: Pull complete
7c9d54bd144b: Pull complete
a7f085de2052: Pull complete
9027970cef28: Pull complete
97a32a5a9483: Pull complete
64c7eb061745: Pull complete
3a5b08312a6b: Pull complete
54698e5bc8b2: Pull complete
Digest: sha256:3d2b48985ba09eb96efeb3bca06fd1b23cccf5d4ee792d532177d55ec15b1032
Status: Downloaded newer image for sonarsource/sonarcloud-quality-gate:0.1.6
✖ Quality gate has not been computed for project.

Now I get this new error:

As I understand there is a default quality gate for those cases

How can I solve this problem?

Hello Colin,

since our free trial period expires tomorrow do you have any hints to solve this problem?

Thanks in advance!