0

ジェンキンスでソナーを開始するにはどうすればよいですか。私のシステムにはソナー3.1.1があります。
私はジェンキンスについて深い知識を持っていません。私はジャンキンを始めて、ソナージャンキンプラグインを追加しました。その後、ジェンキンの管理->システムの構成で、詳細を含むソナーを追加しました。

Name : sonar
Server URL : http://localhost:9000
Database URL : jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
Database login : sonar
Database password : sonar
Database driver : com.mysql.jdbc.Driver

それを適用して保存しました。
しかし、ソナーに関連するジェンキンスには何も見えません。ジェンキンスでソナーのホームページを見ることができます。

4

2 に答える 2

3

すべてがSonar Jenkins Pluginのドキュメント ページに完全に記述されているので、すべてのページを注意深く読み、ガイドラインに従ってください。

于 2013-01-23T08:15:15.363 に答える
0

ソナースタンドアロンanalisysを呼び出すには、すべてのプロジェクトプロパティを構成する必要があります。あなたはそれをしますか?ここに例があります:

# required metadata
sonar.projectKey=yourapp:YourApplication
sonar.projectName=YourApplication
sonar.projectVersion=1.0

# path to source directories (required)
sonar.sources=yourApplication/JavaSource

# path to test source directories (optional)
sonar.tests=test

# path to project binaries (optional), for example directory of Java bytecode
sonar.binaries=YourApplication/build/classes/main

# optional comma-separated list of paths to libraries. Only path to JAR file and path to directory of classes are supported.
#sonar.libraries=path/to/library.jar,path/to/classes/dir

# The value of the property must be the key of the language.
sonar.language=java

sonar.dynamicAnalysis=reuseReports

#Surefire reports
sonar.surefire.reportsPath=yourApplication/build/test-results


sonargraph.prepareForSonar=true
# Additional parameters
#sonar.my.property=value

sonar / jenkinsのバージョンのベースでは、この構成は少し異なるはずです。次に、Sonarの基本構成を変更しない場合は、user = sonar、password=sonarを設定する必要はありません。

于 2013-01-23T10:18:14.600 に答える