When running the command locally the script runs and is completed. Results are shown in SonarCloud.
But When I’m running the command through the pipeline it fails. I added the pipeline log for more information. I’ve got a hard time pinpointing why it is failing.
Your build seems to fail long before SonarCloud analysis:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project filemanager-domain: Fatal error compiling: invalid target release: 11 → [Help 1]
I would remove the org.sonarsource.scanner.maven:sonar-maven-plugin:sonar and work on having a working build in Bitbucket Pipelines, and then add SonarCloud analysis back in.
(Most likely, you need to make sure you’re using an image like image: maven:3.6.3-jdk-11 rather than a different JDK version)