-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathJenkins-CI
More file actions
39 lines (23 loc) · 1.43 KB
/
Jenkins-CI
File metadata and controls
39 lines (23 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Install Plugins required for CI Pipeline
Manage Jenkins --> manage plugins -- Available -- search & install the below
Warning NG -- install without restart
cobertura -- install without restart
Build Pipeline Plugin -- install without restart
=================================================================================================================
Java configuration in Jenkins console
Manage Jenkins --> Global Tool Configuration --> JDK --> Add JDK
Name: myjava ( can be any string )
JAVA_HOME: /path/to/javahome ( ex: /usr/lib/jvm/java )
Maven Configuration in Jenkins console
Manage Jenkins --> Global Tool Configuration --> Maven --> Add Maven
Name: maven3.6 ( can be any string )
MAVEN_HOME: /path/to/mavenhome ( /opt/apache-maven-3.6.0 )
=============================================================================================================
Jenkins ( CI )
CI ( continuous Integration )
Jenkins Job : maven goal : post build action
job1-compile : compile
job2-codereview : -P metrics pmd:pmd : **/pmd.xml ( publish pmd analysis results )
job3-unittest : test : target/surefire-reports/*.xml
job4-codecoverage : cobertura:cobertura -Dcobertura.report.format=xml : target/site/cobertura/coverage.xml ( publish cobertura coverage report )
job5-package : package : NA