Open tallior opened 4 years ago
Hello
I've fixed executable paths in bundled tools, you can download the new plugin version on the Plugins administration page in your TC instance or manually from our plugin repository. Please keep in mind your TC instance version.
I have installed the latest version but it still gives the same issue:
Step 4/4] Starting: mono /Applications/buildAgent/tools/sonar-scanner-msbuild.4.5.0.1761/MSBuild.SonarQube.Runner.exe /d:sonar.password=******* /d:sonar.login=admin end
[06:24:53] [Step 4/4] in directory: /Applications/buildAgent/work/Build_android_Unity_2018_4
[06:24:53] [Step 4/4] WARNING: ------------------------------------------------------------------------
[06:24:53] [Step 4/4] This executable is deprecated and may be removed in next major version of the SonarScanner for MSBuild. Please use 'SonarScanner.MSBuild.exe' instead.
[06:24:53] [Step 4/4] ------------------------------------------------------------------------
[06:24:53] [Step 4/4] SonarScanner for MSBuild 4.5
[06:24:53] [Step 4/4] Using the .NET Framework version of the Scanner for MSBuild
[06:24:53] [Step 4/4] Default properties file was found at /Applications/buildAgent/tools/sonar-scanner-msbuild.4.5.0.1761/SonarQube.Analysis.xml
[06:24:53] [Step 4/4] Loading analysis properties from /Applications/buildAgent/tools/sonar-scanner-msbuild.4.5.0.1761/SonarQube.Analysis.xml
[06:24:53] [Step 4/4] Post-processing started.
[06:24:54] [Step 4/4] SONAR_SCANNER_OPTS is not configured. Setting it to the default value of -Xmx1024m
[06:24:54] [Step 4/4] Calling the SonarQube Scanner...
[06:24:54] [Step 4/4]
[06:24:54] [Step 4/4] Unhandled Exception:
[06:24:54] [Step 4/4] System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/Applications/buildAgent/tools/**sonar-scanner-msbuild.4.5.0.1761**/sonar-scanner-3.2.0.1227/bin/sonar-scanner', CommandLine='"-Dsonar.password=*******" "-Dsonar.login=admin" "-Dsonar.scanAllFiles=true" "-Dproject.settings=/Applications/buildAgent/work/Build_android_Unity_2018_4/.sonarqube/out/sonar-project.properties" "--embedded"', CurrentDirectory='/Applications/buildAgent/work/Build_android_Unity_2018_4', Native error= Access denied
[06:24:54] [Step 4/4] at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0029f] in <118907f5eb5f4e538f3e3bdd8361378f>:0
[06:24:54] [Step 4/4] at System.Diagnostics.Process.Start () [0x0003a] in <118907f5eb5f4e538f3e3bdd8361378f>:0
[06:24:54] [Step 4/4] at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Common.ProcessRunner.Execute (SonarScanner.MSBuild.Common.ProcessRunnerArguments runnerArgs) [0x000ce] in <cbdb805920584b0aa25d1bd6c7ca64f5>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Shim.SonarScannerWrapper.ExecuteJavaRunner (SonarScanner.MSBuild.Common.AnalysisConfig config, System.Collections.Generic.IEnumerable`1[T] userCmdLineArguments, SonarScanner.MSBuild.Common.ILogger logger, System.String exeFileName, System.String propertiesFileName) [0x00055] in <de4552d817f346a4b364559b59492bcc>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Shim.SonarScannerWrapper.InternalExecute (SonarScanner.MSBuild.Common.AnalysisConfig config, System.Collections.Generic.IEnumerable`1[T] userCmdLineArguments, SonarScanner.MSBuild.Common.ILogger logger, System.String fullPropertiesFilePath) [0x0001b] in <de4552d817f346a4b364559b59492bcc>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Shim.SonarScannerWrapper+<>c__DisplayClass8_0.<Execute>b__0 () [0x00044] in <de4552d817f346a4b364559b59492bcc>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Shim.SonarProjectPropertiesValidator.Validate (System.String sonarScannerCwd, System.Collections.Generic.ICollection`1[T] projects, System.Action onValid, System.Action`1[T] onInvalid) [0x00080] in <de4552d817f346a4b364559b59492bcc>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Shim.SonarScannerWrapper.Execute (SonarScanner.MSBuild.Common.AnalysisConfig config, System.Collections.Generic.IEnumerable`1[T] userCmdLineArguments) [0x0007f] in <de4552d817f346a4b364559b59492bcc>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.PostProcessor.MSBuildPostProcessor.InvokeSonarScanner (SonarScanner.MSBuild.Common.IAnalysisPropertyProvider cmdLineArgs, SonarScanner.MSBuild.Common.AnalysisConfig config) [0x00013] in <b6f7481e6745495b911b1d070999f7d2>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.PostProcessor.MSBuildPostProcessor.Execute (System.String[] args, SonarScanner.MSBuild.Common.AnalysisConfig config, SonarScanner.MSBuild.TFS.Interfaces.ITeamBuildSettings settings) [0x000c3] in <b6f7481e6745495b911b1d070999f7d2>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.BootstrapperClass.PostProcess () [0x00082] in <5ebd698ed555465db7e4478cf9854130>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.BootstrapperClass.Execute () [0x00041] in <5ebd698ed555465db7e4478cf9854130>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Program.Execute (System.String[] args, SonarScanner.MSBuild.Common.ILogger logger) [0x00107] in <5ebd698ed555465db7e4478cf9854130>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Program.Execute (System.String[] args, System.Boolean showDeprecatedWarning) [0x0001a] in <5ebd698ed555465db7e4478cf9854130>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Program.ExecuteFromLegacyEntryPoint (System.String[] args) [0x00000] in <5ebd698ed555465db7e4478cf9854130>:0
[06:24:54] [Step 4/4] at MSBuild.SonarQube.Runner.Program.Main (System.String[] args) [0x00000] in <ad285e0456294bfcb8693f2a1ad61ccb>:0
[06:24:54] [Step 4/4] [ERROR] FATAL UNHANDLED EXCEPTION: System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/Applications/buildAgent/tools/sonar-scanner-msbuild.4.5.0.1761/sonar-scanner-3.2.0.1227/bin/sonar-scanner', CommandLine='"-Dsonar.password=*******" "-Dsonar.login=admin" "-Dsonar.scanAllFiles=true" "-Dproject.settings=/Applications/buildAgent/work/Build_android_Unity_2018_4/.sonarqube/out/sonar-project.properties" "--embedded"', CurrentDirectory='/Applications/buildAgent/work/Build_android_Unity_2018_4', Native error= Access denied
[06:24:54] [Step 4/4] at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0029f] in <118907f5eb5f4e538f3e3bdd8361378f>:0
[06:24:54] [Step 4/4] at System.Diagnostics.Process.Start () [0x0003a] in <118907f5eb5f4e538f3e3bdd8361378f>:0
[06:24:54] [Step 4/4] at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Common.ProcessRunner.Execute (SonarScanner.MSBuild.Common.ProcessRunnerArguments runnerArgs) [0x000ce] in <cbdb805920584b0aa25d1bd6c7ca64f5>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Shim.SonarScannerWrapper.ExecuteJavaRunner (SonarScanner.MSBuild.Common.AnalysisConfig config, System.Collections.Generic.IEnumerable`1[T] userCmdLineArguments, SonarScanner.MSBuild.Common.ILogger logger, System.String exeFileName, System.String propertiesFileName) [0x00055] in <de4552d817f346a4b364559b59492bcc>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Shim.SonarScannerWrapper.InternalExecute (SonarScanner.MSBuild.Common.AnalysisConfig config, System.Collections.Generic.IEnumerable`1[T] userCmdLineArguments, SonarScanner.MSBuild.Common.ILogger logger, System.String fullPropertiesFilePath) [0x0001b] in <de4552d817f346a4b364559b59492bcc>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Shim.SonarScannerWrapper+<>c__DisplayClass8_0.<Execute>b__0 () [0x00044] in <de4552d817f346a4b364559b59492bcc>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Shim.SonarProjectPropertiesValidator.Validate (System.String sonarScannerCwd, System.Collections.Generic.ICollection`1[T] projects, System.Action onValid, System.Action`1[T] onInvalid) [0x00080] in <de4552d817f346a4b364559b59492bcc>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Shim.SonarScannerWrapper.Execute (SonarScanner.MSBuild.Common.AnalysisConfig config, System.Collections.Generic.IEnumerable`1[T] userCmdLineArguments) [0x0007f] in <de4552d817f346a4b364559b59492bcc>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.PostProcessor.MSBuildPostProcessor.InvokeSonarScanner (SonarScanner.MSBuild.Common.IAnalysisPropertyProvider cmdLineArgs, SonarScanner.MSBuild.Common.AnalysisConfig config) [0x00013] in <b6f7481e6745495b911b1d070999f7d2>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.PostProcessor.MSBuildPostProcessor.Execute (System.String[] args, SonarScanner.MSBuild.Common.AnalysisConfig config, SonarScanner.MSBuild.TFS.Interfaces.ITeamBuildSettings settings) [0x000c3] in <b6f7481e6745495b911b1d070999f7d2>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.BootstrapperClass.PostProcess () [0x00082] in <5ebd698ed555465db7e4478cf9854130>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.BootstrapperClass.Execute () [0x00041] in <5ebd698ed555465db7e4478cf9854130>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Program.Execute (System.String[] args, SonarScanner.MSBuild.Common.ILogger logger) [0x00107] in <5ebd698ed555465db7e4478cf9854130>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Program.Execute (System.String[] args, System.Boolean showDeprecatedWarning) [0x0001a] in <5ebd698ed555465db7e4478cf9854130>:0
[06:24:54] [Step 4/4] at SonarScanner.MSBuild.Program.ExecuteFromLegacyEntryPoint (System.String[] args) [0x00000] in <5ebd698ed555465db7e4478cf9854130>:0
[06:24:54] [Step 4/4] at MSBuild.SonarQube.Runner.Program.Main (System.String[] args) [0x00000] in <ad285e0456294bfcb8693f2a1ad61ccb>:0
[06:24:54] [Step 4/4] Process exited with code 1
any updates on this ?
I'm sorry, it seems I've missed one bundled version (4.5.0.1761). I've updated it on plugin repository.
how do i install it now? not sure... its not listed in my TeamCity UI
On Mon, Jul 13, 2020 at 8:15 PM Andrey Titov notifications@github.com wrote:
I'm sorry, it seems I've missed one bundled version (4.5.0.1761). I've updated it on plugin repository https://plugins.jetbrains.com/plugin/9094-sonar-runner/.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JetBrains/TeamCity.SonarQubePlugin/issues/81#issuecomment-657684104, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3RFPVHNK5HYR5KP6SP4H3R3M6MFANCNFSM4ORKMSXA .
Which version do you have currently?
I think its marked as 1761, but it didnt work
On Wed, Jul 15, 2020, 18:01 Andrey Titov notifications@github.com wrote:
Which version do you have currently?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JetBrains/TeamCity.SonarQubePlugin/issues/81#issuecomment-658819388, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3RFPV6KE5QUFEWDQQZZC3R3XAFLANCNFSM4ORKMSXA .
I mean the plugin version - you can find it in the Administration -> Plugins page (and check if there is a plugin update notification)
I am using TeamCity 2020.1 with the bundled SonarQube scanner for MSBuild. The finish analysis step failed with this error:
Unhandled Exception: [07:09:10] [Step 4/4] System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/Applications/buildAgent/tools/sonar-scanner-msbuild.4.8.0.12008/sonar-scanner-4.2.0.1873/bin/sonar-scanner', CommandLine='"-Dsonar.password=" "-Dsonar.login=" "-Dsonar.scanAllFiles=true" "-Dproject.settings=/Applications/buildAgent/work/Build/.sonarqube/out/sonar-project.properties" "--embedded"', CurrentDirectory='/Applications/buildAgent/work/Build', Native error= Access denied [07:09:10] [Step 4/4] at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0029f] in <118907f5eb5f4e538f3e3bdd8361378f>:0 [07:09:10] [Step 4/4] at System.Diagnostics.Process.Start () [0x0003a] in <118907f5eb5f4e538f3e3bdd8361378f>:0 [07:09:10] [Step 4/4] at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start() [07:09:10] [Step 4/4] at SonarScanner.MSBuild.Common.ProcessRunner.Execute (SonarScanner.MSBuild.Common.ProcessRunnerArguments runnerArgs) [0x000ce] in <51cfde0612b149f784002481106bd589>:0
Logging in to the build agent and running this command fixed this issue:
chmod +x Applications/buildAgent/tools/sonar-scanner-msbuild.4.8.0.12008/sonar-scanner-4.2.0.1873/bin/sonar-scanner
But we have many build machines, i'd like this to be resolved and not use this workaround of course.