Hello World from OSS Silicon Valley


HowToUse/Jenkins/1.594/CheckStyle


#contents

*Prerequisite [#xabda204]
-Jenkins (You can refer [[HowToUse/Jenkins/1.594]])
-Maven (You can refer [[HowToUse/Maven/3.2]])
-Maven CheckStyle plugin (You can refer [[HowToUse/Maven/3.2/CheckStyle]])


*Install&Setup [#r0b43d33]
:Step.1|
Click "Manage Jenkins" -> "Manage Plugins" link.

:Step.2|
Click "Available" tab. Select "CheckStyle Plugins". Then install plugins and reboot Jenkins after installation.

#ref(Install_fig1.png,,500x266,)

:Step.3|
Click "Configuration" link of target item, select "Publish Checkstyle analysis" from "Add post-build action" and set as follows.

|LEFT:150|LEFT:300|LEFT:200|c
|CENTER:Item|CENTER:Description|CENTER:Example|h
|goal|Add "checkstyle" as goal|"checkstyle:checkstyle"|

|LEFT:150|LEFT:300|LEFT:200|c
|CENTER:Item|CENTER:Description|CENTER:Example|h
|Checkstyle results|specify the path to checkstyle results file|"trunk/sample/target/checkstyle-result.xml"|

*HowToUse [#mee3af94]
:Step.1|
Execute build and you can see test coverage graph.

#ref(Result_fig1.png,,500x266,)
#ref(Result_fig2.png,,500x266,)


*Author [#z5301fed]
S.Yatsuzuka