1.Lint
Install Lint
The stage is similar to the steps which the above session mentioned, as the following diagram.
Set Android SDK Root path on Jenkins’s Configuration
The stage is similar to the steps which the above session mentioned, as the following diagram.
Set Project Configurations and Post-build Actions
The setting of the following sample is for Windows cmd, so the sample is to use “Windows Batch Command”. If using Linux, please change into “Shell Command”, as the following diagram.
Build a Project, as the following diagrams.
Observe results
After successfully building this project, you can checkup whether the workspace about it exists a lint-results.xml file. Then, the final result shows the following diagrams.
2.CheckStyle and FindBugs
Install Findbug and CheckStyle
The stage is similar to the steps which the above session mentioned, as the following diagrams.
Create a custom_rules.xml file
The purpose of the file is to describe how to construct results about FindBugs and CheckStyle, as the following source code.
Add libs and file about FindBugs and CheckStyle
After the above steps, you should put the resources about them into your project, as the following diagrams. The Urls of FindBugs and CheckStyle lib are http://findbugs.sourceforge.net/ and http://checkstyle.sourceforge.net/.
Set Project Configurations, as the following diagram
Execute your project, as the following diagrams
Observe final results, as the following diagrams
3.References
Book: CI – Continuous integration
Website: http://jenkins-ci.org/
Website: http://ithelp.ithome.com.tw/question/10109773
Book: CI – Continuous integration
Website: http://jenkins-ci.org/
Website: http://ithelp.ithome.com.tw/question/10109773
沒有留言:
張貼留言