Task :sonarqube FAILED error while running from JENKINS JOB, I have added the files to exclusion

Task :sonarqube FAILED
Indexing files…
Project configuration:
Excluded sources for coverage: services/src/main/AndroidManifest.xml, services/src/main/aidl, services/src/main/assets
Indexing files of module ‘services’
Base dir: /home/penmapa/jenkins/workspace/qlv-sonarser-test/Modules/qlv-services-apk/services
Source paths: src/main/AndroidManifest.xml, src/main/aidl, src/main/assets,…
Excluded sources for coverage: services/src/main/AndroidManifest.xml, services/src/main/aidl, services/src/main/assets
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:sonarqube’.

File services/src/main/res/charles/drawable/ic_ffw_2.xml can’t be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files

Hi,

it seems there’s an intersection/overlap between inclusions and exclusions.
see Search results for 'can’t be indexed twice' - Sonar Community
for similar problems.

Gilbert

1 Like