to help debug further, you can add the following parameter on the “Prepare Analysis” task: sonar.verbose=true
Once you have relaunched the analysis, we might be able to get more details in the logs.
I have tested it on a private agent and it fails too.
This are the warns and errors.
12:53:02.324 WARN: Missing blame information for the following files:
12:53:02.339 WARN: * MotorWorkFlows.Domain.Entities/Properties/AssemblyInfo.cs
12:53:02.339 WARN: This may lead to missing/broken features in SonarQube
12:53:03.011 WARN: Missing blame information for the following files:
12:53:03.011 WARN: * MotorWorkFlows.Application.Core/Properties/AssemblyInfo.cs
12:53:03.011 WARN: This may lead to missing/broken features in SonarQube
12:53:03.495 WARN: Missing blame information for the following files:
12:53:03.495 WARN: * Crosscutting.Commons/Properties/AssemblyInfo.cs
12:53:03.495 WARN: This may lead to missing/broken features in SonarQube
12:53:06.886 WARN: Metric 'comment_lines_data' is deprecated. Provided value is ignored.
13:00:39.494 ERROR: Error during SonarQube Scanner execution
13:00:39.494 ERROR: null
13:00:39.494 ERROR:
The SonarQube Scanner did not complete successfully
13:00:39.963 Post-processing failed. Exit code: 1
C:\a2\_work\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\1.3.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe failed with return code: 1
This are the end of the log with verbose option active:
2018-09-07T10:53:06.8398259Z 12:53:06.824 DEBUG: 'Go Unit Test Report' skipped because there is no related file in current project
2018-09-07T10:53:06.8399129Z 12:53:06.824 DEBUG: 'Import of go vet issues' skipped because there is no related file in current project
2018-09-07T10:53:06.8400107Z 12:53:06.824 DEBUG: 'Import of Golint issues' skipped because there is no related file in current project
2018-09-07T10:53:06.8401003Z 12:53:06.824 DEBUG: 'Import of GoMetaLinter issues' skipped because there is no related file in current project
2018-09-07T10:53:06.8401807Z 12:53:06.824 DEBUG: 'Kotlin Sensor' skipped because there is no related file in current project
2018-09-07T10:53:06.8402616Z 12:53:06.824 DEBUG: 'Import of detekt issues' skipped because there is no related file in current project
2018-09-07T10:53:06.8403430Z 12:53:06.824 DEBUG: 'Import of Android Lint issues' skipped because one of the required properties is missing
2018-09-07T10:53:06.8404531Z 12:53:06.824 DEBUG: 'T-SQL Sensor' skipped because there is no related file in current project
2018-09-07T10:53:06.8405340Z 12:53:06.824 DEBUG: 'SonarJS Coverage' skipped because one of the required properties is missing
2018-09-07T10:53:06.8406149Z 12:53:06.824 DEBUG: 'Import of ESLint issues' skipped because one of the required properties is missing
2018-09-07T10:53:06.8407214Z 12:53:06.824 DEBUG: 'Ruby Sensor' skipped because there is no related file in current project
2018-09-07T10:53:06.8408033Z 12:53:06.824 DEBUG: 'Import of RuboCop issues' skipped because one of the required properties is missing
2018-09-07T10:53:06.8408862Z 12:53:06.824 DEBUG: 'SimpleCov Sensor for Ruby coverage' skipped because there is no related file in current project
2018-09-07T10:53:06.8428599Z 12:53:06.839 DEBUG: 'PHP sensor' skipped because there is no related file in current project
2018-09-07T10:53:06.8435122Z 12:53:06.839 DEBUG: 'Analyzer for "php.ini" files' skipped because there is no related file in current project
2018-09-07T10:53:06.8435972Z 12:53:06.839 DEBUG: 'AbapSquidSensor' skipped because there is no related file in current project
2018-09-07T10:53:06.8436715Z 12:53:06.839 DEBUG: Sensors : SonarCSS Metrics -> SonarCSS Rules -> C# Properties -> SonarJavaXmlFileSensor -> Web -> XML Sensor -> SonarTS -> SonarTS Coverage -> SonarJS
2018-09-07T10:53:06.8437385Z 12:53:06.839 INFO: Sensor SonarCSS Metrics [cssfamily]
2018-09-07T10:53:06.9031676Z ##[error]12:53:06.886 WARN: Metric 'comment_lines_data' is deprecated. Provided value is ignored.
2018-09-07T10:53:06.9033391Z 12:53:06.886 WARN: Metric 'comment_lines_data' is deprecated. Provided value is ignored.
2018-09-07T10:53:23.3511122Z 12:53:23.339 INFO: Sensor SonarCSS Metrics [cssfamily] (done) | time=16500ms
2018-09-07T10:53:23.3512085Z 12:53:23.339 INFO: Sensor SonarCSS Rules [cssfamily]
2018-09-07T10:53:23.3512735Z 12:53:23.339 DEBUG: Checking node version
2018-09-07T10:53:23.6334546Z 12:53:23.620 DEBUG: Using Node.js v8.11.4
2018-09-07T10:53:23.6336077Z 12:53:23.620 DEBUG: Deploying bundle to C:\a2\_work\1\.sonarqube\out\.sonar\xxxxxx_E8D2D9B6-08BF-4F37-947B-92FEFF3C669B
2018-09-07T11:00:39.3267216Z 13:00:39.322 INFO: ------------------------------------------------------------------------
2018-09-07T11:00:39.3269305Z 13:00:39.322 INFO: EXECUTION FAILURE
2018-09-07T11:00:39.3270329Z 13:00:39.322 INFO: ------------------------------------------------------------------------
2018-09-07T11:00:39.3271123Z 13:00:39.322 INFO: Total time: 7:50.525s
2018-09-07T11:00:39.4980947Z 13:00:39.494 INFO: Final Memory: 25M/189M
2018-09-07T11:00:39.4982268Z 13:00:39.494 INFO: ------------------------------------------------------------------------
2018-09-07T11:00:39.4986410Z ##[error]13:00:39.494 ERROR: Error during SonarQube Scanner execution
13:00:39.494 ERROR: null
13:00:39.494 ERROR:
2018-09-07T11:00:39.4987895Z 13:00:39.494 ERROR: Error during SonarQube Scanner execution
2018-09-07T11:00:39.4988934Z 13:00:39.494 ERROR: null
2018-09-07T11:00:39.4989287Z 13:00:39.494 ERROR:
2018-09-07T11:00:39.9196293Z Process returned exit code 1
2018-09-07T11:00:39.9366665Z ##[error]The SonarQube Scanner did not complete successfully
2018-09-07T11:00:39.9441176Z The SonarQube Scanner did not complete successfully
2018-09-07T11:00:39.9712586Z 13:00:39.963 Creating a summary markdown file...
2018-09-07T11:00:39.9790665Z ##[error]13:00:39.963 Post-processing failed. Exit code: 1
2018-09-07T11:00:39.9791822Z 13:00:39.963 Post-processing failed. Exit code: 1
2018-09-07T11:00:40.1127310Z ##[error]C:\a2\_work\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\1.3.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe failed with return code: 1
2018-09-07T11:00:40.1579439Z ##[section]Finishing: Run Code Analysis
11:47:32.282 WARN: Missing blame information for the following files:
11:47:32.282 WARN: * MotorWorkFlows.Domain.Entities/Properties/AssemblyInfo.cs
11:47:32.282 WARN: This may lead to missing/broken features in SonarQube
11:47:33.391 WARN: Missing blame information for the following files:
11:47:33.391 WARN: * MotorWorkFlows.Application.Core/Properties/AssemblyInfo.cs
11:47:33.391 WARN: This may lead to missing/broken features in SonarQube
11:47:34.032 WARN: Missing blame information for the following files:
11:47:34.032 WARN: * Crosscutting.Commons/Properties/AssemblyInfo.cs
11:47:34.032 WARN: This may lead to missing/broken features in SonarQube
11:47:37.079 WARN: Metric 'comment_lines_data' is deprecated. Provided value is ignored.
11:55:55.662 ERROR: Error during SonarQube Scanner execution
11:55:55.662 ERROR: null
11:55:55.662 ERROR:
The SonarQube Scanner did not complete successfully
11:55:55.865 Post-processing failed. Exit code: 1
C:\a2\_work\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\1.3.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe failed with return code: 1
(HTML5 JavaScript Component Suite for Responsive Web Development)
Note @YiNHo that if this is a file of a library and/or dependency you do not own, then it’s anyhow recommended to exclude it from the analysis (since ultimately you’re in a position to maintain it).
To the latest error you’ve observed: that dx.all.debug.js in GitHub file is 170 thousands lines long! Seems legitimate for the analyzer to not have enough memory at its disposal.