Skip to content

Commit 4fe6ac4

Browse files
committed
A different way of building on JDK 17
1 parent 367ffcb commit 4fe6ac4

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

Jenkinsfile

+26-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
1-
buildPlugin(useContainerAgent: true, configurations: [
2-
[platform: 'linux', jdk: '8'],
3-
[platform: 'linux', jdk: '11'],
4-
[platform: 'linux', jdk: '17']
5-
])
1+
pipeline {
2+
options {
3+
buildDiscarder(logRotator(numToKeepStr: '20'))
4+
timeout(time: 1, unit: 'HOURS')
5+
}
6+
// cf. https://github.com/jenkins-infra/documentation/blob/master/ci.adoc
7+
agent {
8+
label 'docker'
9+
}
10+
tools {
11+
jdk 'jdk17'
12+
maven 'mvn'
13+
}
14+
stages {
15+
stage('main') {
16+
steps {
17+
sh 'mvn -B clean verify -Dmaven.test.failure.ignore'
18+
}
19+
post {
20+
success {
21+
junit '**/target/surefire-reports/TEST-*.xml'
22+
}
23+
}
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)