Skip to content

Commit 2edc778

Browse files
authored
Simplify Jenkinsfile (#780)
1 parent bc08007 commit 2edc778

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

Jenkinsfile

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
#!/usr/bin/env groovy
22

3-
/* Only keep the 10 most recent builds. */
4-
properties([[$class: 'BuildDiscarderProperty',
5-
strategy: [$class: 'LogRotator', numToKeepStr: '10']]])
6-
7-
83
node('java') {
9-
timestamps {
10-
stage('Checkout') {
11-
checkout scm
12-
}
4+
timestamps {
5+
stage('Checkout') {
6+
checkout scm
7+
}
138

14-
stage('Build') {
15-
withEnv([
16-
"JAVA_HOME=${tool 'jdk17'}",
17-
"PATH+MVN=${tool 'mvn'}/bin",
18-
'PATH+JDK=$JAVA_HOME/bin',
19-
]) {
20-
timeout(30) {
21-
sh 'mvn clean install versions:display-plugin-updates'
9+
stage('Build') {
10+
withEnv([
11+
"JAVA_HOME=${tool 'jdk25'}",
12+
"PATH+MVN=${tool 'mvn'}/bin",
13+
'PATH+JDK=$JAVA_HOME/bin',
14+
]) {
15+
timeout(30) {
16+
sh 'mvn clean install versions:display-plugin-updates'
17+
}
18+
}
2219
}
23-
}
2420
}
25-
}
2621
}

0 commit comments

Comments
 (0)