Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Dashboard
Sonar
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<table class="wysiwyg-macro" data-macro-name="info" data-macro-parameters="icon=false|title=Table of Contents" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2luZm86aWNvbj1mYWxzZXx0aXRsZT1UYWJsZSBvZiBDb250ZW50c30&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="RICH_TEXT"><tr><td class="wysiwyg-macro-body"><p><img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e3RvYzptYXhMZXZlbD0yfQ&locale=en_GB&version=2" data-macro-name="toc" data-macro-parameters="maxLevel=2"></p></td></tr></table><h1>Prerequisites</h1><ul><li>Running instances of <a href="https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins">Jenkins</a> and <a class="confluence-link" href="/display/SONAR/Installing+Sonar" data-linked-resource-id="113541598" data-linked-resource-type="page" data-linked-resource-default-alias="Installing Sonar" data-base-url="http://docs.codehaus.org">Sonar</a></li><li><a href="https://wiki.jenkins-ci.org/display/JENKINS/Plugins">Sonar Jenkins plugin installed</a> on Jenkins</li></ul><h1>Configuring the Sonar Jenkins Plugin</h1><h2>Adding Sonar Server</h2><p>You can define as many Sonar servers as you wish. Then for each Jenkins job, you will be able to choose on which server to run the Sonar analysis.</p><p>To add a Sonar server, just follow the three steps below:</p><p>1. Log into Jenkins as an administrator and go to Manage Jenkins > Configure System: </p><p><img class="confluence-embedded-image" height="231" width="679" confluence-query-params="effects=drop-shadow" src="/download/attachments/230400724/Jenkins1.png?version=1&modificationDate=1369029272306&effects=drop-shadow" data-image-src="/download/attachments/230400724/Jenkins1.png?version=1&modificationDate=1369029272306&effects=drop-shadow" data-linked-resource-id="230565284" data-linked-resource-type="attachment" data-linked-resource-default-alias="Jenkins1.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400724" title="null > Jenkins1.png"><br class="atl-forced-newline" /> <br class="atl-forced-newline" /> 2. Scroll down to the 'Sonar' configuration section and click on 'Add Sonar':<br /><img class="confluence-embedded-image" width="900" confluence-query-params="effects=drop-shadow" src="/download/attachments/230400724/add-sonar-installation.png?version=1&modificationDate=1369029272270&effects=drop-shadow" data-image-src="/download/attachments/230400724/add-sonar-installation.png?version=1&modificationDate=1369029272270&effects=drop-shadow" data-linked-resource-id="230565281" data-linked-resource-type="attachment" data-linked-resource-default-alias="add-sonar-installation.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400724" title="null > add-sonar-installation.png"><br class="atl-forced-newline" /> <br class="atl-forced-newline" /> 3. Configure your Sonar installation:</p><p><img class="confluence-embedded-image" width="900" confluence-query-params="effects=drop-shadow" src="/download/attachments/230400724/sonar-installation.png?version=1&modificationDate=1369029272250&effects=drop-shadow" data-image-src="/download/attachments/230400724/sonar-installation.png?version=1&modificationDate=1369029272250&effects=drop-shadow" data-linked-resource-id="230565280" data-linked-resource-type="attachment" data-linked-resource-default-alias="sonar-installation.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400724" title="null > sonar-installation.png"></p><h2>Adding Sonar Runner</h2><p>This step is mandatory if you want to trigger your Sonar analyses with the <a class="confluence-link" href="/display/SONAR/Triggering+Sonar+on+Jenkins+Job#TriggeringSonaronJenkinsJob-TriggeringaSonarAnalysiswiththeSonarRunner" data-anchor="TriggeringaSonarAnalysiswiththeSonarRunner" data-linked-resource-id="227052875" data-linked-resource-type="page" data-linked-resource-default-alias="Triggering Sonar on Jenkins Job#TriggeringaSonarAnalysiswiththeSonarRunner" data-base-url="http://docs.codehaus.org">Sonar Runner</a>. Skip this step if you want to trigger your analyses with <a class="confluence-link" href="/display/SONAR/Triggering+Sonar+on+Jenkins+Job#TriggeringSonaronJenkinsJob-TriggeringaSonarAnalysiswithMaven" data-anchor="TriggeringaSonarAnalysiswithMaven" data-linked-resource-id="227052875" data-linked-resource-type="page" data-linked-resource-default-alias="Triggering Sonar on Jenkins Job#TriggeringaSonarAnalysiswithMaven" data-base-url="http://docs.codehaus.org">Maven</a>.</p><p>You can define as many Sonar Runner launchers as you wish. Then for each Jenkins job, you will be able to choose with which launcher to run the Sonar analysis.</p><p>To add a Sonar Runner, just follow the three steps below:</p><p>1. Log into Jenkins as an administrator and go to Manage Jenkins > Configure System: </p><p><img class="confluence-embedded-image" height="231" width="679" confluence-query-params="effects=drop-shadow" src="/download/attachments/230400724/Jenkins1.png?version=1&modificationDate=1369029272306&effects=drop-shadow" data-image-src="/download/attachments/230400724/Jenkins1.png?version=1&modificationDate=1369029272306&effects=drop-shadow" data-linked-resource-id="230565284" data-linked-resource-type="attachment" data-linked-resource-default-alias="Jenkins1.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400724" title="null > Jenkins1.png"><br class="atl-forced-newline" /><br class="atl-forced-newline" />2. Scroll down to the 'Sonar Runner' configuration section and click on 'Add Sonar Runner'.<span style="font-size: 10.0pt;line-height: 13.0pt;"> It is based on the typical Jenkins tool auto-installation. You can either choose to point to an already installed version of Sonar Runner (uncheck 'Install automatically') or tell Jenkins to grab the installer from a remote location (check 'Install automatically'):</span></p><p><span style="font-size: 10.0pt;line-height: 13.0pt;"><img class="confluence-embedded-image" confluence-query-params="effects=drop-shadow" src="/download/attachments/230400724/sonar-runner-installation.png?version=1&modificationDate=1369029272217&effects=drop-shadow" data-image-src="/download/attachments/230400724/sonar-runner-installation.png?version=1&modificationDate=1369029272217&effects=drop-shadow" data-linked-resource-id="230565278" data-linked-resource-type="attachment" data-linked-resource-default-alias="sonar-runner-installation.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400724" title="null > sonar-runner-installation.png"><br /></span></p>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced