Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin not working #10

Open
jeroeningen opened this issue Feb 29, 2016 · 3 comments
Open

Plugin not working #10

jeroeningen opened this issue Feb 29, 2016 · 3 comments

Comments

@jeroeningen
Copy link

I have installed the plugin to do a git clone in the dir 'extensions/plugins' which result in:

drwxr-xr-x 3 sonar adm     4,0K Feb 26 20:32 .
drwxr-xr-x 6 sonar adm     4,0K Feb 25 22:05 ..
-rw-r--r-- 1 sonar adm      128 Dez 11 09:30 README.txt
drwxr-xr-x 4 sonar root    4,0K Feb 26 20:58 ruby-sonar-plugin
-rw-r--r-- 1 sonar nogroup 2,8M Jan  7 14:18 sonar-java-plugin-3.7.1.jar
-rw-r--r-- 1 sonar nogroup 6,3M Dez 11 09:36 sonar-scm-svn-plugin-1.2.jar

But I get the following error after restarting Sonarqube:

SonarQube Runner 2.4
Java 1.8.0_66-internal Oracle Corporation (64-bit)
Linux 4.2.0-30-generic amd64
INFO: Runner configuration file: /usr/local/sonar-runner/conf/sonar-runner.properties
INFO: Project configuration file: /home/jeroen/projects/logius_test/sonar-project.properties
INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent)
INFO: Work directory: /home/jeroen/projects/logius_test/./.sonar
INFO: SonarQube Server 5.3
21:04:24.234 INFO  - Load global repositories
21:04:24.692 INFO  - Load global repositories (done) | time=457ms
21:04:24.742 WARN  - Property 'sonar.jdbc.url' is not supported any more. It will be ignored. There is no longer any DB connection to the SQ database.
21:04:24.747 INFO  - User cache: /home/jeroen/.sonar/cache
21:04:25.170 INFO  - Load plugins index
21:04:25.190 INFO  - Load plugins index (done) | time=20ms
21:04:25.732 INFO  - Process project properties
21:04:25.862 INFO  - Load project repositories
21:04:26.101 INFO  - Load project repositories (done) | time=239ms
21:04:26.132 INFO  - Apply project exclusions
21:04:26.229 INFO  - Load quality profiles
21:04:26.283 INFO  - Load quality profiles (done) | time=53ms
21:04:26.293 INFO  - Load active rules
21:04:27.105 INFO  - Load active rules (done) | time=812ms
21:04:27.126 WARN  - SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.scm.provider to define SCM of your project.
21:04:27.127 INFO  - Publish mode
21:04:27.136 INFO  - -------------  Scan Logius
21:04:27.399 INFO  - Language is forced to ruby
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 4.136s
Final Memory: 8M/138M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: You must install a plugin that supports the language 'ruby'
ERROR: 
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.

What am I doing wrong?

@truongtx8
Copy link

You're doing wrong. Please check here:
http://docs.sonarqube.org/display/DEV/Build+plugin

@fptiangco
Copy link

fptiangco commented Sep 21, 2016

Hi jeroeningen, not sure if you've sorted this one out by now.

Looking at your jar file, it seems it's roughly what I would expect the plugin jar to look like once built. You're also putting it in the right directory in the sonarqube server (..extensions/plugins)

Have you tried re-building the plugin, or perhaps re-starting the SQ server itself prior to re-running sonar-runner?

@sandylunar
Copy link

@truongtx8 I cannot find the jar file for this plugin......Do I have to build the ruby-sonar-plugin myself if I want to use this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants