SonarQube analysis and Quality Gate completed succesfully via bitbucket pipeline, but last analysis shows this warning:
Failed to resolve 2 file path(s) in PHPUnit tests junit.xml report. Nothing is imported related to file(s): /opt/atlassian/pipelines/agent/build/code/tests/Feature/ExampleTest.php;/opt/atlassian/pipelines/agent/build/code/tests/Unit/ExampleTest.php
Whats the problem?
- step: &build-test-sonarcloud
name: SonarQube analysis
caches:
- sonar
script:
- pipe: sonarsource/sonarcloud-scan:1.4.0
variables:
SONAR_TOKEN: ${SONAR_TOKEN}
EXTRA_ARGS: '
-Dsonar.projectKey=${SONAR_PROJECT_KEY}
-Dsonar.projectBaseDir=code
-Dsonar.exclusions=**/lang/**
-Dsonar.cpd.exclusions=config/**
-Dsonar.organizationKey=${SONAR_ORGANIZATION_KEY}
-Dsonar.php.coverage.reportPaths=storage/coverage/coverage.xml
-Dsonar.php.tests.reportPath=storage/coverage/junit.xml
-Dsonar.tests.inclusions=tests/**
'
- step: &check-quality-gate-sonarcloud
name: Check the Quality Gate on SonarCloud
script:
- pipe: sonarsource/sonarcloud-quality-gate:0.1.6