一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

Jenkins+Sonar | 扛一肩記憶

 bananarlily 2014-07-23

----------------------
Reproduced statement:
This post is reprinted/referred from the articles of Meera's Blog:
http://meera-subbarao./2009/11/continuos-quality-using-sonar.html

and
http://meera-subbarao./2009/11/hudson-sonar-perfect-match.html

Notes:

Pls note that the Jenkins server mentioned in this article is setup in Windows, not Linux, But it has almost the same steps as in Linux.

Pls also note that, This article is also suitable for Hudson CI system.

About Jenkins/Hudson Sonar plugin, pls refer to:

http://docs./display/SONAR/Hudson+and+Jenkins+Plugin

In case you are using other CI servers(like CrouseControl, etc...), no need to panic. You can read a detailed documentation here for all the CI servers Sonar supports:

http://docs./display/SONAR/Continuous+Inspection

It totally requires just 5 simple steps if you have Jenkins/Hudson running as your CI(Continuous Integration) server to install and use Sonar. Yes, 5 simple steps is all you need to get a neat and intuitive dashboard from Sonar. So, lets see what those 5 simple steps are.

Step 1: Download, install and start the Sonar Server.

Download the latest Sonar release from here. Unzip the distribution to your favorite location, for e.g C:\dev\projects\sonar-1.11.1. Based on your platform, run the batch file or the shell script from within the bin folder. On windows, it is C:\dev\projects\sonar-1.11.1\bin\windows-x86-32\StartSonar.bat.

Open a web browser and browse to http://localhost:9000. The default login and password is admin/admin.

Step 2: Install and Configure Sonar plugin on Jenkins/Hudson.

Open your Jenkins/Hudson dashboard. Default is http://localhost:8080. Click on Manage Jenkins/Hudson -> Manage Plugins. Click now on the Available tab, you should see the Jenkins/Hudson Sonar Plugin. Check this plugin and click on the Install button at the far right hand corner.

Restart Jenkins/Hudson and you should be able to see the plugin in the Installed tab as shown below:

Next, configure the Sonar plugin from within Manage Jenkins/Hudson -> Configure System. I am using the default database, and so didn't make any changes here. However, if you are using a different database server, you need to provide the database URL, username, password and so on as shown below.

Step 3: Configure your Jenkins/Hudson Job

In order to activate Sonar on a project, click on Configure, and within the Post-build Actions, check Sonar and you should see the following properties. Fill those properties and Save this configuration.

Step 4: Build your project

Even though you don't require Maven to be used as a build tool for your project, Sonar does still require Maven to run. If Maven isn't installed, you can download and install Maven from here.

Force a build on your Job on the Hudson dashboard. If Maven is installed, you should be able to see the following output in the Console Output on Hudson dashboard.

Step 5: Browse to Sonar Dashboard

Once the build succeeds in the last step, browse to http://localhost:8080. And you should be able to see the Sonar Dashboard as such:

That's all it is to download, install, configure and get continuous quality updates from Jenkins/Hudson and Sonar. The above steps took me less than 15 minutes.

I am sure many of you are already using Sonar. I haven't used it with any of my clients yet. Hopefully, will do so soon. Share your thoughts if you are using Sonar.

More information about Code Static Check in CI system such Jenkins/Hudson, pls refer to this link(It lists a lot of tools of code static check):
https://wiki./dosearchsite.action?queryString=code+static+check

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多

    欧美精品日韩精品一区| 91欧美日韩一区人妻少妇| 午夜视频免费观看成人| 亚洲欧美日韩网友自拍| 国产又粗又猛又爽又黄| 精品国产亚洲av成人一区| 又色又爽又无遮挡的视频| 亚洲中文字幕在线观看四区| 日韩欧美一区二区黄色| 翘臀少妇成人一区二区| 欧美日韩国产自拍亚洲| 黄色污污在线免费观看| 国产美女网红精品演绎| 99久久无色码中文字幕免费| 极品少妇一区二区三区精品视频| 少妇人妻精品一区二区三区| 亚洲女同一区二区另类| 日韩欧美91在线视频| 熟女乱一区二区三区四区| 日韩精品福利在线观看| 欧美日韩国产精品自在自线| 东北女人的逼操的舒服吗| 99香蕉精品视频国产版| 国产成人精品国产成人亚洲| 国产女性精品一区二区三区| 亚洲精品美女三级完整版视频| 亚洲男人天堂成人在线视频| 日本少妇三级三级三级| 亚洲欧美黑人一区二区| 欧美日韩精品综合一区| 国产亚洲精品久久久优势| 在线九月婷婷丁香伊人| 好吊一区二区三区在线看| 黄色激情视频中文字幕| 欧美老太太性生活大片| 日本人妻中出在线观看| 亚洲国产91精品视频| 久久精品国产在热亚洲| 欧美偷拍一区二区三区四区| 亚洲午夜福利不卡片在线 | 精品午夜福利无人区乱码|