-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
97 lines (74 loc) · 2.5 KB
/
Jenkinsfile
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
node {
// Checkout code from repository
stage('Checkout source') {
checkout scm
}
stage('Generate html-docs code') {
withMaven(
// Maven installation declared in the Jenkins "Global Tool Configuration"
maven: 'M3')
{
// Run the maven build (works on both linux and windows)
sh "mvn clean install -P html-docs"
}
// withMaven will discover the generated Maven artifacts, JUnit Surefire & FailSafe reports and FindBugs reports
}
stage('Generate javascript code') {
withMaven(
// Maven installation declared in the Jenkins "Global Tool Configuration"
maven: 'M3')
{
// Run the maven build (works on both linux and windows)
sh "mvn clean install -P javascript"
}
// withMaven will discover the generated Maven artifacts, JUnit Surefire & FailSafe reports and FindBugs reports
}
stage('Generate and build java8-okhttp-gson code') {
withMaven(
// Maven installation declared in the Jenkins "Global Tool Configuration"
maven: 'M3')
{
// Run the maven build (works on both linux and windows)
sh "mvn clean install -P java8-okhttp-gson"
}
dir("java8-okhttp-gson"){
withMaven(
// Maven installation declared in the Jenkins "Global Tool Configuration"
maven: 'M3')
{
// Run the maven build (works on both linux and windows)
sh "mvn clean install"
}
}
// withMaven will discover the generated Maven artifacts, JUnit Surefire & FailSafe reports and FindBugs reports
}
stage('Generate java8-jersey2 code') {
withMaven(
// Maven installation declared in the Jenkins "Global Tool Configuration"
maven: 'M3')
{
// Run the maven build (works on both linux and windows)
sh "mvn clean install -P java8-jersey2"
}
dir("java8-jersey2"){
withMaven(
// Maven installation declared in the Jenkins "Global Tool Configuration"
maven: 'M3')
{
// Run the maven build (works on both linux and windows)
sh "mvn clean install"
}
}
// withMaven will discover the generated Maven artifacts, JUnit Surefire & FailSafe reports and FindBugs reports
}
stage('Generate csharp-net45 code') {
withMaven(
// Maven installation declared in the Jenkins "Global Tool Configuration"
maven: 'M3')
{
// Run the maven build (works on both linux and windows)
sh "mvn clean install -P csharp-net45"
}
// withMaven will discover the generated Maven artifacts, JUnit Surefire & FailSafe reports and FindBugs reports
}
}