2019-09-04T06:36:00.7126245Z ##[debug]Evaluating condition for step: 'Run Code Analysis' 2019-09-04T06:36:00.7127192Z ##[debug]Evaluating: or(eq(variables['System.PullRequest.TargetBranch'], 'refs/heads/develop'), eq(variables['EnableBranchAnalysis'], 'True')) 2019-09-04T06:36:00.7127499Z ##[debug]Evaluating or: 2019-09-04T06:36:00.7127757Z ##[debug]..Evaluating eq: 2019-09-04T06:36:00.7128016Z ##[debug]....Evaluating indexer: 2019-09-04T06:36:00.7128242Z ##[debug]......Evaluating variables: 2019-09-04T06:36:00.7128752Z ##[debug]......=> Object 2019-09-04T06:36:00.7129019Z ##[debug]......Evaluating String: 2019-09-04T06:36:00.7129511Z ##[debug]......=> 'System.PullRequest.TargetBranch' 2019-09-04T06:36:00.7129853Z ##[debug]....=> Null 2019-09-04T06:36:00.7130097Z ##[debug]....Evaluating String: 2019-09-04T06:36:00.7130376Z ##[debug]....=> 'refs/heads/develop' 2019-09-04T06:36:00.7130639Z ##[debug]....=> Unable to coerce String to Null. 2019-09-04T06:36:00.7130935Z ##[debug]..=> False 2019-09-04T06:36:00.7131157Z ##[debug]..Evaluating eq: 2019-09-04T06:36:00.7131412Z ##[debug]....Evaluating indexer: 2019-09-04T06:36:00.7131654Z ##[debug]......Evaluating variables: 2019-09-04T06:36:00.7131938Z ##[debug]......=> Object 2019-09-04T06:36:00.7132182Z ##[debug]......Evaluating String: 2019-09-04T06:36:00.7132560Z ##[debug]......=> 'EnableBranchAnalysis' 2019-09-04T06:36:00.7132881Z ##[debug]....=> 'True' 2019-09-04T06:36:00.7133291Z ##[debug]....Evaluating String: 2019-09-04T06:36:00.7133603Z ##[debug]....=> 'True' 2019-09-04T06:36:00.7134168Z ##[debug]..=> True 2019-09-04T06:36:00.7134446Z ##[debug]=> True 2019-09-04T06:36:00.7134980Z ##[debug]Expanded: or(eq(Null, 'refs/heads/develop'), eq('True', 'True')) 2019-09-04T06:36:00.7136046Z ##[debug]Result: True 2019-09-04T06:36:00.7136359Z ##[section]Starting: Run Code Analysis 2019-09-04T06:36:00.7248236Z ============================================================================== 2019-09-04T06:36:00.7248440Z Task : Run Code Analysis 2019-09-04T06:36:00.7248630Z Description : Run scanner and upload the results to the SonarQube server. 2019-09-04T06:36:00.7248937Z Version : 4.6.3 2019-09-04T06:36:00.7249070Z Author : sonarsource 2019-09-04T06:36:00.7249448Z Help : This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build. [More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html) 2019-09-04T06:36:00.7249721Z ============================================================================== 2019-09-04T06:36:01.0536859Z ##[debug]agent.TempDirectory=E:\Agent01\_work\_temp 2019-09-04T06:36:01.0567655Z ##[debug]loading inputs and endpoints 2019-09-04T06:36:01.0575410Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN 2019-09-04T06:36:01.0596753Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION 2019-09-04T06:36:01.0600127Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION 2019-09-04T06:36:01.0605244Z ##[debug]loading SECRET_SONARQUBE_ENDPOINT 2019-09-04T06:36:01.0607805Z ##[debug]loading SECRET_TOKEN 2019-09-04T06:36:01.0609729Z ##[debug]loading SECRET_USER 2019-09-04T06:36:01.0616413Z ##[debug]loaded 6 2019-09-04T06:36:01.0635827Z ##[debug]Agent.ProxyUrl=undefined 2019-09-04T06:36:01.0637518Z ##[debug]Agent.CAInfo=undefined 2019-09-04T06:36:01.0637875Z ##[debug]Agent.ClientCert=undefined 2019-09-04T06:36:01.0638161Z ##[debug]Agent.SkipCertValidation=undefined 2019-09-04T06:36:01.1444667Z ##[debug]SONARQUBE_SCANNER_MODE=MSBuild 2019-09-04T06:36:01.1455676Z ##[debug]SONARQUBE_SCANNER_MSBUILD_EXE=E:\Agent01\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.7.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe 2019-09-04T06:36:01.1461122Z ##[debug]which 'E:\Agent01\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.7.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' 2019-09-04T06:36:01.1471955Z ##[debug]found: 'E:\Agent01\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.7.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' 2019-09-04T06:36:01.1473464Z ##[debug]which 'E:\Agent01\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.7.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' 2019-09-04T06:36:01.1474925Z ##[debug]found: 'E:\Agent01\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.7.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' 2019-09-04T06:36:01.1477834Z ##[debug]E:\Agent01\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.7.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe arg: end 2019-09-04T06:36:01.1489823Z ##[debug]exec tool: E:\Agent01\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.7.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe 2019-09-04T06:36:01.1490229Z ##[debug]arguments: 2019-09-04T06:36:01.1490660Z ##[debug] end 2019-09-04T06:36:01.1500954Z [command]E:\Agent01\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.7.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe end 2019-09-04T06:36:01.1976739Z SonarScanner for MSBuild 4.6.2 2019-09-04T06:36:01.1981777Z Using the .NET Framework version of the Scanner for MSBuild 2019-09-04T06:36:01.2551753Z Post-processing started. 2019-09-04T06:36:01.4175316Z 06:36:01.416 06:36:01.332 SonarQube.Integration.ImportBefore.targets does not exist at C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\MSBuild\4.0\Microsoft.Common.targets\ImportBefore 2019-09-04T06:36:01.4176063Z 06:36:01.416 06:36:01.332 SonarQube.Integration.ImportBefore.targets does not exist at C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\MSBuild\10.0\Microsoft.Common.targets\ImportBefore 2019-09-04T06:36:01.4176662Z 06:36:01.416 06:36:01.332 SonarQube.Integration.ImportBefore.targets does not exist at C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\MSBuild\11.0\Microsoft.Common.targets\ImportBefore 2019-09-04T06:36:01.4176961Z 06:36:01.416 06:36:01.332 SonarQube.Integration.ImportBefore.targets does not exist at C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\MSBuild\12.0\Microsoft.Common.targets\ImportBefore 2019-09-04T06:36:01.4177272Z 06:36:01.416 06:36:01.332 SonarQube.Integration.ImportBefore.targets does not exist at C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\MSBuild\14.0\Microsoft.Common.targets\ImportBefore 2019-09-04T06:36:01.4177557Z 06:36:01.416 06:36:01.332 SonarQube.Integration.ImportBefore.targets does not exist at C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\MSBuild\15.0\Microsoft.Common.targets\ImportBefore 2019-09-04T06:36:01.4177837Z 06:36:01.416 06:36:01.332 SonarQube.Integration.ImportBefore.targets does not exist at C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\MSBuild\Current\Microsoft.Common.targets\ImportBefore 2019-09-04T06:36:01.4178081Z 06:36:01.416 06:36:01.416 sonar.verbose=true was specified - setting the log verbosity to 'Debug' 2019-09-04T06:36:01.4186256Z 06:36:01.417 Loading the SonarQube analysis config from E:\Agent01\_work\50\.sonarqube\conf\SonarQubeAnalysisConfig.xml 2019-09-04T06:36:01.4188334Z 06:36:01.417 TeamBuild environment detected 2019-09-04T06:36:01.4194033Z 06:36:01.418 Analysis base directory: E:\Agent01\_work\50\.sonarqube 2019-09-04T06:36:01.4194255Z Build directory: E:\Agent01\_work\50 2019-09-04T06:36:01.4194428Z Bin directory: E:\Agent01\_work\50\.sonarqube\bin 2019-09-04T06:36:01.4194866Z Config directory: E:\Agent01\_work\50\.sonarqube\conf 2019-09-04T06:36:01.4195166Z Output directory: E:\Agent01\_work\50\.sonarqube\out 2019-09-04T06:36:01.4195360Z Config file: E:\Agent01\_work\50\.sonarqube\conf\SonarQubeAnalysisConfig.xml 2019-09-04T06:36:01.4250678Z 06:36:01.423 Attempting to locate the CodeCoverage.exe tool... 2019-09-04T06:36:01.4301072Z 06:36:01.428 Attempting to locate the CodeCoverage.exe tool using setup configuration... 2019-09-04T06:36:01.4435373Z 06:36:01.442 Code coverage command line tool: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe 2019-09-04T06:36:01.4817519Z 06:36:01.446 Fetching code coverage report information from TFS... 2019-09-04T06:36:01.4817757Z 06:36:01.449 Attempting to locate a test results (.trx) file... 2019-09-04T06:36:04.3174112Z 06:36:04.316 Looking for TRX files in: E:\Agent01\_work\50\TestResults, E:\Agent01\_work\50\s\TestResults 2019-09-04T06:36:04.3178923Z 06:36:04.316 The following test results files were found: E:\Agent01\_work\50\s\TestResults\Build01$_Build01_2019-09-04_06_23_18.trx 2019-09-04T06:36:06.4661780Z 06:36:06.464 Absolute path to coverage file: E:\Agent01\_work\50\s\TestResults\Build01$_Build01_2019-09-04_06_23_18\In\Build01\Build01$_Build01 2019-09-04 06_22_56.coverage 2019-09-04T06:36:06.4664637Z 06:36:06.465 The following code coverage attachments were found from the trx files: E:\Agent01\_work\50\s\TestResults\Build01$_Build01_2019-09-04_06_23_18\In\Build01\Build01$_Build01 2019-09-04 06_22_56.coverage 2019-09-04T06:36:06.4665089Z 06:36:06.465 Not using the fallback mechanism to detect binary coverage files. 2019-09-04T06:36:06.4805301Z 06:36:06.479 Executing file C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe 2019-09-04T06:36:06.4805778Z Args: analyze /output:E:\Agent01\_work\50\s\TestResults\Build01$_Build01_2019-09-04_06_23_18\In\Build01\Build01$_Build01 2019-09-04 06_22_56.coveragexml E:\Agent01\_work\50\s\TestResults\Build01$_Build01_2019-09-04_06_23_18\In\Build01\Build01$_Build01 2019-09-04 06_22_56.coverage 2019-09-04T06:36:06.4806301Z Working directory: E:\Agent01\_work\50\s\TestResults\Build01$_Build01_2019-09-04_06_23_18\In\Build01 2019-09-04T06:36:06.4806476Z Timeout (ms):60000 2019-09-04T06:36:06.4806611Z Process id: 15240 2019-09-04T06:36:16.8670341Z 06:36:16.865 Process returned exit code 0 2019-09-04T06:36:16.8749294Z Generating SonarQube project properties file to E:\Agent01\_work\50\.sonarqube\out\sonar-project.properties 2019-09-04T06:36:16.8826493Z ##[error]The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects. Possible causes: 1. The project has not been built - the project must be built in between the begin and end steps 2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0 and 15.0 are supported 3. The begin, build and end steps have not all been launched from the same folder 4. None of the analyzed projects have a valid ProjectGuid and you have not used a solution (.sln) 2019-09-04T06:36:16.8827481Z ##[debug]Processed: ##vso[task.logissue type=error;]The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.%0D%0APossible causes:%0D%0A 1. The project has not been built - the project must be built in between the begin and end steps%0D%0A 2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0 and 15.0 are supported%0D%0A 3. The begin, build and end steps have not all been launched from the same folder%0D%0A 4. None of the analyzed projects have a valid ProjectGuid and you have not used a solution (.sln) 2019-09-04T06:36:16.8827961Z The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects. 2019-09-04T06:36:16.8828133Z Possible causes: 2019-09-04T06:36:16.8828518Z 1. The project has not been built - the project must be built in between the begin and end steps 2019-09-04T06:36:16.8828745Z 2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0 and 15.0 are supported 2019-09-04T06:36:16.8829038Z 3. The begin, build and end steps have not all been launched from the same folder 2019-09-04T06:36:16.8829225Z 4. None of the analyzed projects have a valid ProjectGuid and you have not used a solution (.sln) 2019-09-04T06:36:16.8904742Z Writing processing summary to E:\Agent01\_work\50\.sonarqube\out\ProjectInfo.log 2019-09-04T06:36:16.8913802Z Generation of the sonar-properties file failed. Unable to complete SonarQube analysis. 2019-09-04T06:36:16.8967173Z ##[error]06:36:16.895 Post-processing failed. Exit code: 1 2019-09-04T06:36:16.8967603Z ##[debug]Processed: ##vso[task.logissue type=error;]06:36:16.895 Post-processing failed. Exit code: 1 2019-09-04T06:36:16.8967829Z 06:36:16.895 Post-processing failed. Exit code: 1 2019-09-04T06:36:16.9119123Z ##[debug]rc:1 2019-09-04T06:36:16.9119696Z ##[debug]success:false 2019-09-04T06:36:16.9173799Z ##[debug]task result: Failed 2019-09-04T06:36:16.9174429Z ##[error]E:\Agent01\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.7.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe failed with return code: 1 2019-09-04T06:36:16.9175011Z ##[debug]Processed: ##vso[task.issue type=error;]E:\Agent01\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.7.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe failed with return code: 1 2019-09-04T06:36:16.9175966Z ##[debug]Processed: ##vso[task.complete result=Failed;]E:\Agent01\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.7.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe failed with return code: 1 2019-09-04T06:36:16.9254934Z ##[section]Finishing: Run Code Analysis