zepol
zepol

Reputation: 309

Trying to analyze .NET project with Sonar using Jenkins

I'm trying to analyze a .Net in sonar using Jenkins, but everything I build the project I get the error below:

Caused by: org.sonar.api.utils.command.CommandException: java.io.IOException: Cannot run program "/var/lib/jenkins/jobs/Ing1345-BalancedScoreCard/workspace/.sonar/SonarQube.CSharp.CodeAnalysis.Runner/SonarQube.CSharp.CodeAnalysis.Runner.exe": error=13, dennied permission

I've read some post about the error and they say I should give execution permission to that folder, but it doesn't work.

Any idea of how I can solve this issue.

Jenkins Version:1.609.1 Sonar Version: 5.1.1 Maven version:3.3.3 SonarQue Runner version:2.4 OS: Redhat

Thanks in advance for your help

Upvotes: 2

Views: 1577

Answers (2)

Jacek P.
Jacek P.

Reputation: 61

The latest version (4.0) of C# plugin won't work on linux servers like your RedHat, due to the fact that it requires the analyzer machines to run on Windows, and the .NET Framework 4.5 to be installed. You can find more info on official C# plugin page for Sonar. Team responsible for plugin starting from version 3.4 droped Java based parser and they've written new version in C#.

Upvotes: 5

ioscode
ioscode

Reputation: 821

I think you will need to run your analysis for .Net on a Windows platform. The Redhat Linux OS your Jenkins is running on cannot execute a Windows exe.

Upvotes: 0

Related Questions