iec-sonar: Disable git submodule cloning 66/3366/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 16 Apr 2020 14:37:27 +0000 (16:37 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 16 Apr 2020 14:59:58 +0000 (16:59 +0200)
SonarQube should be limited to scanning the IEC repository contents
and not its (massive) collection of git submodules which include various
upstream components (including the full K8s source code, among other
large code bases).

Although we apply some inclusion/exclusion filtering as part of
SonarQube configuration, it seems that the large collection of git
submodules interferes with log collection and upload; hence disable
cloning git submodules before running SonarQube.
This is an attempt at fixing the ever-hanging iec-sonar job in CI.

Change-Id: If6b9b205d8f1924ca8180787a92415494461d5b7
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
jjb/iec/iec.yaml

index 36b7cfb..047aab2 100644 (file)
@@ -88,6 +88,8 @@
       - gerrit-sonar:
           sonar-project-file: ""
           build-node: centos7-builder-2c-1g
+          submodule-recursive: false
+          submodule-disable: true
           sonar-properties: |
             # Required metadata
             sonar.projectKey=iec