Hi all,
I’m trying to perform a Sonar Cloud validation in my code using Bitbucket pipeline, but I’m getting the error message bellow:
level=error msg="error waiting for container: unexpected EOF"
I tried to increase memory using the size: 2x and using parameter SONAR_SCANNER_OPTS="-Xmx2048m", but I still receive the same error message.
Please, could you help me?
I’m using the following script in bitbucket-pipelines.yml:
image: python:3.7.2 # 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
size: 2x
script:
- # Build your project and run
- pipe: sonarsource/sonarcloud-scan:1.0.1
- step: &check-quality-gate-sonarcloud
name: Check the Quality Gate on SonarCloud
size: 2x
script:
- pipe: sonarsource/sonarcloud-quality-gate:0.1.3
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
- ALM: Bitbucket Cloud
- CI system: Bitbucket Cloud
- Languages: Python
- Potential workaround: Increase memory (it didn’t work)
Thank You!
