+ umask 000 + GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone --branch="development" 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 7980b0a6b6e616e25d37414209e80cacc39b148b HEAD is now at 7980b0a Merge branch 'dev-feature' into development + 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 "sonar: ~/.sonar/cache": Downloading Cache "sonar: ~/.sonar/cache": Not found Default variables: BITBUCKET_BRANCH BITBUCKET_BUILD_NUMBER BITBUCKET_CLONE_DIR BITBUCKET_COMMIT BITBUCKET_GIT_HTTP_ORIGIN BITBUCKET_GIT_SSH_ORIGIN BITBUCKET_PIPELINE_UUID BITBUCKET_PROJECT_KEY BITBUCKET_PROJECT_UUID BITBUCKET_REPO_FULL_NAME BITBUCKET_REPO_IS_PRIVATE BITBUCKET_REPO_OWNER BITBUCKET_REPO_OWNER_UUID BITBUCKET_REPO_SLUG BITBUCKET_REPO_UUID BITBUCKET_SSH_KEY_FILE BITBUCKET_STEP_RUN_NUMBER BITBUCKET_STEP_TRIGGERER_UUID BITBUCKET_STEP_UUID BITBUCKET_WORKSPACE CI DOCKER_HOST PIPELINES_JWT_TOKEN Workspace variables: SONAR_HOST SONAR_SECRET SONAR_USER Repository variables: AWS_ACCESS_KEY_ID AWS_DEFAULT_REGION AWS_SECRET_ACCESS_KEY SERVER SERVER_PROD SONAR_TOKEN USER USER_PROD Images used: build : docker.io/library/node@sha256:0c888dc647d36f5a895edb6b1b1c96ae81064455e0cdeee0792e14927604ca99 + 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 Unable 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 d9d1bc98b287: Verifying Checksum d9d1bc98b287: Download complete 743f2d6c1f65: Verifying Checksum 743f2d6c1f65: Download complete c99e982badff: Download complete ea88b09234a3: Verifying Checksum ea88b09234a3: Download complete a561eaec2f8f: Verifying Checksum a561eaec2f8f: Download complete 5d476eee175a: Verifying Checksum 5d476eee175a: Download complete 83613aeae58d: Verifying Checksum 83613aeae58d: Download complete 50c6b4dfde57: Verifying Checksum 50c6b4dfde57: Download complete 3d3951d29cc9: Verifying Checksum 3d3951d29cc9: 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: /opt/atlassian/pipelines/agent/build/sonar-project.properties INFO: SonarScanner 4.6.2.2472 INFO: Java 11.0.3 Oracle Corporation (64-bit) INFO: Linux 5.15.0-1026-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: /opt/atlassian/pipelines/agent/build/sonar-project.properties INFO: Analyzing on SonarQube server 8.0.0.36818 INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent) INFO: Load global settings INFO: Load global settings (done) | time=599ms INFO: Server id: INFO: User cache: /root/.sonar/cache INFO: Load/download plugins INFO: Load plugins index INFO: Load plugins index (done) | time=567ms INFO: Load/download plugins (done) | time=4234ms INFO: Loaded core extensions: developer-scanner INFO: Found an active CI vendor: 'Bitbucket Pipelines' INFO: Detected project key 'emvigotechnologies_vantage.asset.management.phase2.electronjs' from 'Bitbucket Cloud Pipelines' INFO: Detected organization key 'emvigotechnologies' from 'Bitbucket Cloud Pipelines' INFO: Load project settings for component key: 'emvigotechnologies_vantage.asset.management.phase2.electronjs' INFO: Process project properties INFO: Execute project builders INFO: Execute project builders (done) | time=2ms INFO: Project key: emvigotechnologies_vantage.asset.management.phase2.electronjs 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=523ms INFO: Check ALM binding of project 'emvigotechnologies_vantage.asset.management.phase2.electronjs' INFO: Detected project binding: NONEXISTENT INFO: Check ALM binding of project 'emvigotechnologies_vantage.asset.management.phase2.electronjs' (done) | time=524ms INFO: Load project pull requests INFO: Load project pull requests (done) | time=521ms INFO: Load branch configuration INFO: Detected analysis for branch 'development' INFO: Auto-configuring branch development INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ INFO: Total time: 14.776s INFO: Final Memory: 21M/100M INFO: ------------------------------------------------------------------------ ERROR: Error during SonarScanner execution ERROR: Could not find a default branch to fall back on. ERROR: ERROR: Re-run SonarScanner using the -X switch to enable full debug logging. ✖ SonarCloud analysis failed. (exit code = 2) 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 2.8 KiB Compressed files matching artifact pattern .bitbucket/pipelines/generated/pipeline/pipes/** to 1 KiB in 0 seconds Uploading artifact of 1 KiB Successfully uploaded artifact in 0 seconds Searching for test report files in directories named [test-results, failsafe-reports, test-reports, TestResults, 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.