El análisis de request de extracción de GitHub falla en Teamcity

Estamos intentando configurar el análisis Sonarqube PR con Github enterprise 2.8.7 y TeamCity Enterprise 10.0.4.

La creación de Teamcity está fallando con el error "No se pudo decorar" mientras se publicaba en Sonarqube. El usuario configurado en git es el mismo que el usuario configurado en teamcity y este usuario está habilitado con todos los permissions necesarios en Sonarqube (examinar, ejecutar, administrar la aplicación, acceder al código fuente). El logging de errores muestra "Código de respuesta: 401" para https: // sonar_dashboard / sonar / api / sources? Resource = sample_app% 3A sample_app% 3A51D7374A-7F9F-475A-BE5F-2B249FFBB677% 3AApp_Start% 2FWebApiConfig.cs & format = txt al que se puede acceder el usuario a través del browser.

El problema se encuentra solo si intenta agregar un comentario global en git con detalles de violación. Además, este problema no aparece si configuramos el permiso de ver el código fuente para 'cualquiera' para este proyecto, que no es una configuration deseada desde el punto de vista de la security.

Cualquier ayuda para resolver este problema. A continuación, agrego el logging de errores para más detalles.

[08:06:24][Step 4/4] ERROR: Error during Sonar runner execution [08:06:24][Step 4/4] INFO: ------------------------------------------------------------------------ [08:06:24][Step 4/4] org.sonar.runner.impl.RunnerException: Unable to execute Sonar [08:06:24][Step 4/4] at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91) [08:06:24][Step 4/4] at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75) [08:06:24][Step 4/4] at java.security.AccessController.doPrivileged(Native Method) [08:06:24][Step 4/4] at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69) [08:06:24][Step 4/4] at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50) [08:06:24][Step 4/4] at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102) [08:06:24][Step 4/4] at org.sonar.runner.api.Runner.execute(Runner.java:100) [08:06:24][Step 4/4] at org.sonar.runner.Main.executeTask(Main.java:70) [08:06:24][Step 4/4] at org.sonar.runner.Main.execute(Main.java:59) [08:06:24][Step 4/4] at org.sonar.runner.Main.main(Main.java:53) [08:06:24][Step 4/4] Caused by: org.sonar.api.utils.SonarException: Fail to decorate 'org.sonar.api.resources.File@7344c969[key=App_Start/WebApiConfig.cs,deprecatedKey=App_Start/WebApiConfig.cs,path=App_Start/WebApiConfig.cs,dir=App_Start,filename=WebApiConfig.cs,language=C#]' [08:06:24][Step 4/4] at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:103) [08:06:24][Step 4/4] at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:86) [08:06:24][Step 4/4] at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:78) [08:06:24][Step 4/4] at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:78) [08:06:24][Step 4/4] at org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:70) [08:06:24][Step 4/4] at org.sonar.batch.phases.PhaseExecutor.execute(PhaseExecutor.java:123) [08:06:24][Step 4/4] at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:194) [08:06:24][Step 4/4] at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:93) [08:06:24][Step 4/4] at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:78) [08:06:24][Step 4/4] at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:233) [08:06:24][Step 4/4] at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:228) [08:06:24][Step 4/4] at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:226) [08:06:24][Step 4/4] at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:221) [08:06:24][Step 4/4] at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:93) [08:06:24][Step 4/4] at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:78) [08:06:24][Step 4/4] at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:64) [08:06:24][Step 4/4] at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:51) [08:06:24][Step 4/4] at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:125) [08:06:24][Step 4/4] at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:93) [08:06:24][Step 4/4] at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:78) [08:06:24][Step 4/4] at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:173) [08:06:24][Step 4/4] at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95) [08:06:24][Step 4/4] at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67) [08:06:24][Step 4/4] at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48) [08:06:24][Step 4/4] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [08:06:24][Step 4/4] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [08:06:24][Step 4/4] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [08:06:24][Step 4/4] at java.lang.reflect.Method.invoke(Method.java:601) [08:06:24][Step 4/4] at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87) [08:06:24][Step 4/4] ... 9 more [08:06:24][Step 4/4] Caused by: org.sonar.api.utils.HttpDownloader$HttpException: Fail to download [https://sonar_dashboard/sonar/api/sources?resource=sample_app%3A sample_app%3A51D7374A-7F9F-475A-BE5F-2B249FFBB677%3AApp_Start%2FWebApiConfig.cs&format=txt]. Response code: 401 [08:06:24][Step 4/4] at org.sonar.api.utils.HttpDownloader$BaseHttpDownloader$HttpInputSupplier.getInput(HttpDownloader.java:281) [08:06:24][Step 4/4] at org.sonar.api.utils.HttpDownloader$BaseHttpDownloader$HttpInputSupplier.getInput(HttpDownloader.java:235) [08:06:24][Step 4/4] at org.sonar.batch.bootstrap.ServerClient.request(ServerClient.java:89) [08:06:24][Step 4/4] at org.sonar.batch.scan.LastSnapshots.loadSourceFromWs(LastSnapshots.java:61) [08:06:24][Step 4/4] at org.sonar.batch.scan.LastSnapshots.getSource(LastSnapshots.java:50) [08:06:24][Step 4/4] at org.sonar.plugins.core.issue.SourceHashHolder.getReferenceSource(SourceHashHolder.java:78) [08:06:24][Step 4/4] at org.sonar.plugins.core.issue.SourceHashHolder.hasBothReferenceAndCurrentSource(SourceHashHolder.java:86) [08:06:24][Step 4/4] at org.sonar.plugins.core.issue.IssueTracking.mapIssues(IssueTracking.java:82) [08:06:24][Step 4/4] at org.sonar.plugins.core.issue.IssueTracking.track(IssueTracking.java:59) [08:06:24][Step 4/4] at org.sonar.plugins.core.issue.IssueTrackingDecorator.doDecorate(IssueTrackingDecorator.java:118) [08:06:24][Step 4/4] at org.sonar.plugins.core.issue.IssueTrackingDecorator.decorate(IssueTrackingDecorator.java:100) [08:06:24][Step 4/4] at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:95) [08:06:24][Step 4/4] ... 37 more [08:06:24][Step 4/4] ERROR: [08:06:24][Step 4/4] ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging. [08:06:25][Step 4/4] The SonarQube Scanner did not complete successfully [08:06:25][Step 4/4] 08:06:25.127 Creating a summary markdown file... [08:06:25][Step 4/4] Post-processing failed. Exit code: 1 [08:06:25][Step 4/4] Process exited with code 1 [08:06:25][Step 4/4] Step Publish to SonarQube (Command Line) failed