Good day,
I’m trying to run initial Analyze a project with Bitbucket Pipelines
and facing an issue where my pipelines are either timing out or fail with exit code = 137
.
- ALM used:
Bitbucket Cloud
- CI system used:
Bitbucket Cloud
- Languages of the repository:
PHP
- Error observed:
/usr/bin/run-scanner.sh: line 26: 11 Killed sonar-scanner "${ALL_ARGS[@]}" 2>&1
12 Done | tee "${SCANNER_REPORT}"
INFO: 8533 files indexed... (last one was common/modules/Sales/modules/TcpaConsent/components/TrustedForm/CertificateLinkDetailDto.php)✖ SonarCloud analysis failed. (exit code = 137)
SONAR_TOKEN is added to bitbucket project variables.
I already tried the solutions from similar topics:
- increased docker memory up to 2G (see bitbucket-pipelines.txt below)
- increased/decreased Xmx, Xms values
Full log:
bbcloud-build-log.txt (50.3 KB)
bbcloud-docker-log.txt (8.3 KB)
Pipeline config:
bitbucket-pipelines.txt (1.5 KB)
variables in project vars (used for EXTRA_ARGS
, DEBUG
, SONAR_SCANNER_OPTS
values in pipeline config):
CI_CUSTOM_SCAN_EXTRA_ARGS: -Dsonar.exclusions=**/*.yml,**/*.yaml
CI_CUSTOM_SCAN_DEBUG: false
CI_CUSTOM_SCAN_OPTS: -Xms6G -Xmx6G
How can this issue be resolved? Thanks.