C# scan BitBucket pipeline failing

I’ve been trying to configure a scan on my C# project through a BitBucket pipeline but it fails after a couple of minutes, here is my current .yml file:

image: microsoft/dotnet:sdk # Choose an image matching your project needs

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

definitions:
      caches:
            sonar: ~/.sonar/cache  # Caching SonarCloud artifacts will speed up your build
      steps:
      - step: &build-test-sonarcloud
              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.2.0
      - step: &check-quality-gate-sonarcloud
              name: Check the Quality Gate on SonarCloud
              script:
              - pipe: sonarsource/sonarcloud-quality-gate:0.1.4
              - export SONAR_SCANNER_VERSION=4.4.0.2170
              - export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
              - export BW_OUTPUT=$HOME/.sonar/bw-output
              - mkdir -p $BW_OUTPUT
              - curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip 
              - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
              - export PATH=$SONAR_SCANNER_HOME/bin:$PATH
              - export SONAR_SCANNER_OPTS="-server"
              - curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
              - unzip -o $HOME/.sonar/sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
              - export PATH=$HOME/.sonar/sonar/build-wrapper-linux-x86:$PATH
              - build-wrapper-linux-x86-64 --out-dir $BW_OUTPUT MSBuild /t:rebuild DAG.TFORM.sln
              - sonar-scanner -Dsonar.cfamily.build-wrapper-output=$BW_OUTPUT

pipelines:                 # More info here: https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html
  branches:
    master:
      - step: *build-test-sonarcloud
      - step: *check-quality-gate-sonarcloud
  pull-requests:
    '**':
      - step: *build-test-sonarcloud
      - step: *check-quality-gate-sonarcloud

Welcome to the community, and sorry for the delay!

Can you please share the output of the pipeline? It’s the most important piece of info to give us clues to debug a failed run.