Using Bitbucket Pipelines.
I have a repo “search” with 2 projects “hygraph_search” and “composite_search”.
I get an error on 1st analysis - but it continues (no idea why). And then the 2nd project runs and it errors with return 1.
- pipe: sonarsource/sonarcloud-scan:1.4.0
variables:
SONAR_TOKEN: ${SONAR_TOKEN}
EXTRA_ARGS: '-Dsonar.organization=exclusiveresortsit -Dsonar.projectKey=composite_search -Dsonar.sources=src -Dsonar.tests=src -Dsonar.test.inclusions="**/tests/**,**/*.spec.js" -Dsonar.typescript.lcov.reportPaths=coverage/lcov.info'
DEBUG: "true"
and
- pipe: sonarsource/sonarcloud-scan:1.4.0
variables:
SONAR_TOKEN: ${SONAR_TOKEN}
EXTRA_ARGS: '-Dsonar.organization=exclusiveresortsit -Dsonar.projectKey=hygraph_search -Dsonar.sources=src -Dsonar.tests=src -Dsonar.test.inclusions="**/tests/**,**/*.spec.js" -Dsonar.typescript.lcov.reportPaths=coverage/lcov.info'
DEBUG: "true"
I get error:
21:01:51.276 INFO: ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=hygraph_search&branch=test&resolved=false
21:01:51.276 INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
21:01:51.276 INFO: More about the report processing at https://sonarcloud.io/api/ce/task?id=AYZ67rpu0t1Jku23QGql
21:01:51.423 DEBUG: GET 403 https://ea6ne4j2sb.execute-api.eu-central-1.amazonaws.com/current/v1/sensor_cache/prepare_write?organization=exclusiveresortsit&project=hygraph_search&branch=test | time=122ms
21:01:51.423 ERROR: Failed to prepare write of the sensor cache
org.sonar.api.utils.MessageException: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator
``
21:01:51.424 DEBUG: Failed to publish sensor cache
Is there a way to turn off this cache?