2017-09-22 6 views
0

빌드별로 SonarQube 분석을 추가했습니다. 나는 다음과 같은 오류 메시지가 전체 솔루션을 분석 할 때 : 내가 분석에서 특정 프로젝트를 제외하면VSTS에서 "SonarQube 분석 완료"실패

2017-09-22T09:50:42.2999604Z INFO: EXECUTION FAILURE 
2017-09-22T09:50:42.2999604Z INFO: ------------------------------------------------------------------------ 
2017-09-22T09:50:42.2999604Z INFO: Total time: 3:13.721s 
2017-09-22T09:50:42.5250774Z ##[error]ERROR: Error during SonarQube Scanner execution 
2017-09-22T09:50:42.5250774Z INFO: Final Memory: 56M/487M 
2017-09-22T09:50:42.5250774Z INFO: ------------------------------------------------------------------------ 
2017-09-22T09:50:42.5250774Z ##[error]ERROR: Failed to upload report - 500: An error has occurred. Please contact your administrator 
2017-09-22T09:50:42.5250774Z ##[error]ERROR: 
2017-09-22T09:50:42.5250774Z ##[error]ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging. 
2017-09-22T09:50:42.9286059Z ##[error]The SonarQube Scanner did not complete successfully 
2017-09-22T09:50:42.9286059Z 09:50:42.896 Creating a summary markdown file... 
2017-09-22T09:50:42.9296199Z ##[error]09:50:42.897 Post-processing failed. Exit code: 1 
2017-09-22T09:50:43.0959382Z ##[error]System.Exception: Unexpected exit code received from batch file: 1 
2017-09-22T09:50:43.0959382Z ##[debug]Processed: ##vso[task.logissue type=error;]System.Exception: Unexpected exit code received from batch file: 1 
2017-09-22T09:50:43.0959382Z at Microsoft.TeamFoundation.DistributedTask.Task.Internal.InvokeBatchScriptCmdlet.ProcessRecord() 
2017-09-22T09:50:43.0959382Z at System.Management.Automation.CommandProcessor.ProcessRecord() 
... 
... 
... 
2017-09-22T09:50:44.1439034Z ##[error]System.Management.Automation.RuntimeException: Cannot determine if the analysis has finished. Possible cause: your SonarQube server version is lower than 5.3 - for more details see https://go.microsoft.com/fwlink/?LinkId=722407 ---> System.Management.Automation.RuntimeException: Cannot determine if the analysis has finished. Possible cause: your SonarQube server version is lower than 5.3 - for more details see https://go.microsoft.com/fwlink/?LinkId=722407 
2017-09-22T09:50:44.1439034Z ##[debug]Processed: ##vso[task.logissue type=error;]System.Management.Automation.RuntimeException: Cannot determine if the analysis has finished. Possible cause: your SonarQube server version is lower than 5.3 - for more details see https://go.microsoft.com/fwlink/?LinkId=722407 ---> System.Management.Automation.RuntimeException: Cannot determine if the analysis has finished. Possible cause: your SonarQube server version is lower than 5.3 - for more details see https://go.microsoft.com/fwlink/?LinkId=722407 
2017-09-22T09:50:44.1439034Z --- End of inner exception stack trace --- 
2017-09-22T09:50:44.1439034Z at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) 
2017-09-22T09:50:44.1439034Z at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) 
2017-09-22T09:50:44.1439034Z at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync) 
2017-09-22T09:50:44.1449020Z at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) 
2017-09-22T09:50:44.1449020Z at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) 
2017-09-22T09:50:44.1449020Z at Microsoft.TeamFoundation.DistributedTask.Handlers.LegacyVSTSPowerShellHost.VSTSPowerShellHost.Main(String[] args) 
2017-09-22T09:50:44.1449020Z ##[error]LegacyVSTSPowerShellHost.exe completed with return code: -1. 

그러나, 그것을 잘 작동합니다.

은 MSBuild 버전 : 15.0
SonarQube 스캐너은 MSBuild 버전 : 3.0.2
SonarQube 버전 : 6.5.0.27846

업데이트 : 나는 SonarQube 웹 서버 로그를 확인하고, 발견

다음 :

2017.09.22 11:22:02 ERROR web[AV6lYUR0O1EK9+r8AAWY][o.s.s.w.WebServiceEngine] Fail to process request http://... 
... 
... 
... 
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: The size of BLOB/TEXT data inserted in one transaction is greater than 10% of redo log size. Increase the redo log size using innodb_log_file_size. 
+0

이미지 및 스크린 샷 게시물에 좋은 보탬이 될 수 있지만, 포스트 여전히없이 명확하고 유용 있는지 확인하십시오

자세한 사항은이 문서를 참조하십시오. [코드 이미지 또는 오류 메시지를 게시하지 마십시오.] (https://meta.stackoverflow.com/questions/303812/discourage-screenshots-of-code-and-or-errors) 대신 복사하여 붙여 넣거나 입력하십시오. 코드/메시지를 직접 게시 할 수 있습니다. – user5226582

답변