-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
54 lines (53 loc) · 1.43 KB
/
Jenkinsfile
File metadata and controls
54 lines (53 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!groovy
pipeline {
agent none
// save some io during the build
options { durabilityHint( 'PERFORMANCE_OPTIMIZED' ) }
stages {
stage("Parallel Stage") {
parallel {
stage( "Build Jdk8" ) {
agent { node { label 'linux-light' } }
steps {
timeout( time: 120, unit: 'MINUTES' ) {
withMaven( maven: 'maven3', jdk: 'jdk8' ) {
sh "mvn -B -V clean install"
}
}
}
}
stage( "Build Jdk11" ) {
agent { node { label 'linux-light' } }
steps {
timeout( time: 120, unit: 'MINUTES' ) {
withMaven( maven: 'maven3', jdk: 'jdk11' ) {
sh "mvn -B -V clean install"
}
}
}
}
stage( "Build Jdk17" ) {
agent { node { label 'linux-light' } }
steps {
timeout( time: 120, unit: 'MINUTES' ) {
withMaven( maven: 'maven3', jdk: 'jdk17' ) {
sh "mvn -B -V clean install"
}
}
}
}
stage( "Build Jdk21" ) {
agent { node { label 'linux-light' } }
steps {
timeout( time: 120, unit: 'MINUTES' ) {
withMaven( maven: 'maven3', jdk: 'jdk21' ) {
sh "mvn -B -V clean install"
}
}
}
}
}
}
}
}
// vim: et:ts=2:sw=2:ft=groovy